mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Remove need for cadence on virtual power
Since you may not have a cadence sensor available it does not make sense to zero power when cadence is zero.
This commit is contained in:
@@ -108,7 +108,9 @@ RealtimeController::processRealtimeData(RealtimeData &rtData)
|
||||
break;
|
||||
}
|
||||
// if calculating but no cadence then power must be set to zero
|
||||
if (dc->postProcess && !rtData.getCadence()) rtData.setWatts(0);
|
||||
// XXX But if there is not cadence device present the virtual
|
||||
// power will never work! So commented out.
|
||||
// if (dc->postProcess && !rtData.getCadence()) rtData.setWatts(0);
|
||||
}
|
||||
|
||||
// for future devices, we may need to setup algorithmic tables etc
|
||||
|
||||
Reference in New Issue
Block a user