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:
Mark Liversedge
2011-12-08 21:03:52 +00:00
parent 053c5548a6
commit efc7ad039d

View File

@@ -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