Ride Cache - Don't remove 1 sec intervals

Previous behaviour was weird: 1 sec intervals could be created and displayed,
but they were discarded on activity save.
Also 1 sec intervals are useful for 3 param model fitting.
This commit is contained in:
Alejandro Martinez
2024-10-04 10:47:52 -03:00
parent c519412311
commit b62a2d3190

View File

@@ -952,7 +952,7 @@ RideItem::updateIntervals()
continue;
// skip empty backward intervals
if (interval->start >= interval->stop) continue;
if (interval->start > interval->stop) continue;
// create a new interval item
const int seq = count; // if passed directly, it could be incremented BEFORE being evaluated for the sequence arg as arg eval order is undefined