mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
from Justin: PT reports no data as watts == -1, assume watts == 0 in that case
This commit is contained in:
@@ -116,6 +116,11 @@ RideFile *CsvFileReader::openRideFile(QFile &file, QStringList &errors) const
|
||||
kph *= MILES_TO_KM;
|
||||
}
|
||||
}
|
||||
|
||||
// PT reports no data as watts == -1.
|
||||
if (watts == -1)
|
||||
watts = 0;
|
||||
|
||||
rideFile->appendPoint(minutes * 60.0, cad, hr, km,
|
||||
kph, nm, watts, interval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user