mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix a small issue in setPowerScaleFactor (#3634)
If a value was set for the powerScaleCalibration factor, the weight was clipped between 0.8 and 1.2kg. That would be an easy ride uphill for sure.
This commit is contained in:
@@ -103,8 +103,8 @@ void Fortius::setBrakeCalibrationFactor(double brakeCalibrationFactor)
|
||||
// output power adjusted by this value so user can compare with hub or crank based readings
|
||||
void Fortius::setPowerScaleFactor(double powerScaleFactor)
|
||||
{
|
||||
if (weight < 0.8) weight = 0.8;
|
||||
if (weight > 1.2) weight = 1.2;
|
||||
if (powerScaleFactor < 0.8) powerScaleFactor = 0.8;
|
||||
if (powerScaleFactor > 1.2) powerScaleFactor = 1.2;
|
||||
|
||||
pvars.lock();
|
||||
this->powerScaleFactor = powerScaleFactor;
|
||||
|
||||
Reference in New Issue
Block a user