mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Show power and cadence in stationary tcx files
Minor change to handle how duplicate records in tcx files are handled. This allows for power and cadence to be properly displayed for rides with no distance information (e.g. trainer rides).
This commit is contained in:
committed by
Sean Rhea
parent
a89ebacac0
commit
4d3c208908
@@ -129,7 +129,7 @@ TcxParser::endElement( const QString&, const QString&, const QString& qName)
|
||||
|
||||
// Work around bug in 705 firmware where cadence and
|
||||
// power values repeat when stopped.
|
||||
if (delta_d == 0.0)
|
||||
if (delta_d == 0.0 && distance != 0.0)
|
||||
{
|
||||
power = 0.0;
|
||||
cadence = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user