FitRideFile - Handle resync when HRM is unbucled

Fixes #3059
This commit is contained in:
Ale Martinez
2019-11-21 09:41:34 -03:00
parent 5cb0ed5b35
commit 5383430b19
2 changed files with 2 additions and 1 deletions

View File

@@ -2302,7 +2302,8 @@ struct FitFileReaderState
case 9: // event_timestamp
last_event_timestamp = value.v;
start_timestamp = time-last_event_timestamp/1024.0;
// update start_timestamp only if Timestamp (253) included for resyncs
if (time > 0) start_timestamp = time-last_event_timestamp/1024.0;
timestamps.append(last_event_timestamp/1024.0);
break;
case 10: // event_timestamp_12

Binary file not shown.