From 107ba0ff99c21d4035c852f56637d173d5883bb5 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 11 Oct 2011 10:29:39 +0100 Subject: [PATCH] WKO+ iBike fixup was wrong reverted after testing against more files. There is something decidedly odd about WKO+ files from iBike computers. The scheme used to mark pauses in recording is different, but cannot work out why. --- src/WkoRideFile.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/WkoRideFile.cpp b/src/WkoRideFile.cpp index de227bf88..f32fc9933 100644 --- a/src/WkoRideFile.cpp +++ b/src/WkoRideFile.cpp @@ -488,7 +488,6 @@ WkoParser::parseRawData(WKO_UCHAR *fb) // Now output this sample if it is not a null record if (!isnull) { -static int time=0; // !! needs to be modified to support the new alt patch results->appendPoint((double)rtime/1000, cad, hr, km, kph, nm, watts, alt, lon, lat, wind, 0); @@ -507,7 +506,8 @@ static int time=0; // pause record different in version 1 if (version == 1) pausesize=31; - else pausesize=39; + else if (WKO_device == 0x14) pausesize = 39; + else pausesize=42; /* set increment value -> if followed by a null record it is to show a pause in recording -- velotrons seem to cause @@ -516,15 +516,13 @@ static int time=0; pausetime = get_bits(thelot, bit, 32); if (version != 1) inc = pausetime; #if 0 - else { - //XXX Version 1 pause records debug! - fprintf(stderr, "v1 pausetime: "); - for (int i=0; i