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:
Jamie Kimberley
2009-12-25 13:38:31 -05:00
committed by Sean Rhea
parent a89ebacac0
commit 4d3c208908

View File

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