garmin: don't suppress the time sample at zero time
The logic to suppress multiple redundant time samples in the garmin parser also always suppressed the time sample at 0:00, which was not intentional. Fix it by simply making the "suppress before" logic be "suppress until" instead. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4a43392c78
commit
740222d216
@ -323,11 +323,11 @@ DECLARE_FIELD(ANY, timestamp, UINT32)
|
||||
data -= garmin->cache.time;
|
||||
|
||||
// Did we already do this?
|
||||
if (data <= garmin->record_data.time)
|
||||
if (data < garmin->record_data.time)
|
||||
return;
|
||||
|
||||
// Now we're ready to actually update the sample times
|
||||
garmin->record_data.time = data;
|
||||
garmin->record_data.time = data+1;
|
||||
sample.time = data;
|
||||
garmin->callback(DC_SAMPLE_TIME, sample, garmin->userdata);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user