Fixed bug whereby CSV file was corrupted.

When Device was not available, Realtime was creating a corrupted CSV.
If Device is not availble at startup, the ride file is removed.
This commit is contained in:
Justin Knotzke
2010-11-25 09:00:57 -05:00
parent 0d3caf923a
commit d259f1dbf8
6 changed files with 22 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ ComputrainerController::getRealtimeData(RealtimeData &rtData)
msgBox.setText("Cannot Connect to Computrainer");
msgBox.setIcon(QMessageBox::Critical);
msgBox.exec();
parent->Stop();
parent->Stop(1);
return;
}
// get latest telemetry
@@ -129,7 +129,7 @@ ComputrainerController::getRealtimeData(RealtimeData &rtData)
// if Buttons == 0 we just pressed stop!
if (Buttons&CT_RESET) {
parent->Stop();
parent->Stop(0);
}
// displaymode