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:
Alejandro Martinez
2024-09-20 11:59:17 -03:00
parent 79b523781d
commit 1230dc7c68
2 changed files with 7 additions and 0 deletions

View File

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

Binary file not shown.