mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 00:49:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user