Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
lovettchris committed Mar 20, 2017
1 parent a63caf9 commit d0a93dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions LogViewer/LogViewer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ private void OnLogDownloadComplete(object sender, string fileName)
Task.Run(async () => { await LoadBinaryFile(fileName); });
}


private async void OnOpenFile(object sender, RoutedEventArgs e)
{
OpenButton.IsEnabled = false;
Expand All @@ -319,7 +320,6 @@ private async void OnOpenFile(object sender, RoutedEventArgs e)
if (fo.ShowDialog() == true)
{
SystemConsole.Show();

foreach (var file in fo.FileNames)
{
switch (System.IO.Path.GetExtension(file).ToLowerInvariant())
Expand All @@ -343,6 +343,7 @@ private async void OnOpenFile(object sender, RoutedEventArgs e)
break;
}
}
ShowTotalFlightTime();
}
OpenButton.IsEnabled = true;
}
Expand Down Expand Up @@ -430,8 +431,7 @@ private void LoadFlights(IDataLog data)
{
ShowMap();
}

ShowTotalFlightTime();

});

}
Expand Down
2 changes: 1 addition & 1 deletion LogViewer/LogViewer/Model/MavlinkLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MavlinkLog : IDataLog
string file;
DateTime startTime;
TimeSpan duration;
List<Message> data;
List<Message> data = new List<Message>();
LogItemSchema schema = new LogItemSchema() { Name = "MavlinkLog", Type = "Root" };
Dictionary<Type, LogItemSchema> schemaCache = new Dictionary<Type, LogItemSchema>();
Dictionary<string, MAVLink.mavlink_param_value_t> parameters = new Dictionary<string, MAVLink.mavlink_param_value_t>();
Expand Down

0 comments on commit d0a93dc

Please sign in to comment.