Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Jaime
2013-01-11 08:23:51 -05:00
2 changed files with 4 additions and 3 deletions

View File

@@ -158,7 +158,8 @@ void ANT::setWheelRpm(float x) {
// devConf will be NULL if we are are running the add device wizard
// we can default to the global setting
if (devConf) telemetry.setSpeed(x * (devConf->wheelSize/1000) * 60 / 1000);
else telemetry.setSpeed(x * (appsettings->value(NULL, GC_WHEELSIZE, 2100).toInt()/1000) * 60 / 1000);
//else telemetry.setSpeed(x * (appsettings->value(NULL, GC_WHEELSIZE, 2100).toInt()/1000) * 60 / 1000);
else telemetry.setSpeed((x * devConf->wheelSize / 1000) * 60 / 1000); // not a global setting anymore -- device specific
}
/*======================================================================

View File

@@ -713,7 +713,7 @@ void TrainTool::Start() // when start button is pressed
load_msecs += load_period.restart();
#if defined Q_OS_MAC || defined GC_HAVE_VLC
// enable media tree so we can change movie
// enable media tree so we can change movie - mid workout
mediaTree->setEnabled(true);
#endif
@@ -874,7 +874,7 @@ void TrainTool::Stop(int deviceStatus) // when stop button is pressed
if ((status&RT_RUNNING) == 0) return;
status &= ~RT_RUNNING;
status &= ~(RT_RUNNING|RT_PAUSED);
// Stop users from selecting different devices
// media or workouts whilst a workout is in progress