mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
replace tabs with spaces
.. in TrainTool.cpp
This commit is contained in:
@@ -1303,16 +1303,20 @@ void TrainTool::Calibrate()
|
|||||||
main->notifyUnPause(); // get video started again, amongst other things
|
main->notifyUnPause(); // get video started again, amongst other things
|
||||||
|
|
||||||
// back to ergo/slope mode and restore load/gradient
|
// back to ergo/slope mode and restore load/gradient
|
||||||
if (status&RT_MODE_ERGO)
|
if (status&RT_MODE_ERGO) {
|
||||||
|
|
||||||
foreach(int dev, devices()) {
|
foreach(int dev, devices()) {
|
||||||
Devices[dev].controller->setMode(RT_MODE_ERGO);
|
Devices[dev].controller->setMode(RT_MODE_ERGO);
|
||||||
Devices[dev].controller->setLoad(load);
|
Devices[dev].controller->setLoad(load);
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
|
|
||||||
foreach(int dev, devices()) {
|
foreach(int dev, devices()) {
|
||||||
Devices[dev].controller->setMode(RT_MODE_SPIN);
|
Devices[dev].controller->setMode(RT_MODE_SPIN);
|
||||||
Devices[dev].controller->setGradient(slope);
|
Devices[dev].controller->setGradient(slope);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (bar == NULL) {
|
if (bar == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user