mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
FIT parser - Lap messages can be first
in the new file structure, like in the companion test file from a Sigma ROX 11.1
This commit is contained in:
@@ -2667,6 +2667,13 @@ genericnext:
|
||||
}
|
||||
|
||||
// In the new file format lap messages come first
|
||||
if (start_time == 0 && this_start_time >0) {
|
||||
start_time = this_start_time;
|
||||
last_reference_time = start_time;
|
||||
QDateTime t;
|
||||
t.setSecsSinceEpoch(start_time);
|
||||
rideFile->setStartTime(t);
|
||||
}
|
||||
// and timestamp doesn't match lap stop time anymore
|
||||
if (time <= this_start_time) {
|
||||
time = this_start_time + total_elapsed_time - 1;
|
||||
|
||||
BIN
test/rides/SigmaRox11_1.fit
Normal file
BIN
test/rides/SigmaRox11_1.fit
Normal file
Binary file not shown.
Reference in New Issue
Block a user