Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfrpg committed Mar 3, 2021
1 parent a6a94a8 commit f24bccc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/SharpBladeFlightAnalyzer/ULogFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,16 @@ public bool Load(string path, Dictionary<string, FieldConfig> fieldConfigs)
foreach(var df in v.Value.FieldDict)
{
if (df.Value.Flag == SpecialField.Padding)
{
df.Value.Dispose();
continue;
}
if (df.Value.Flag == SpecialField.TimeStamp)
mvm.Children.Add(new MessageViewModel() { Name = df.Key + "_[TS]", DataField = df.Value });
{
continue;//mvm.Children.Add(new MessageViewModel() { Name = df.Key + "_[TS]", DataField = df.Value });
}
else
mvm.Children.Add(new MessageViewModel() { Name = df.Key, DataField = df.Value ,Size=df.Value.Values.Count});
mvm.Children.Add(new MessageViewModel() { Name = df.Key, DataField = df.Value, Size = df.Value.Values.Count });
df.Value.Values.TrimExcess();
}
messageList.Add(mvm);
Expand Down

0 comments on commit f24bccc

Please sign in to comment.