remove background start timestamp reset on sleep

This commit is contained in:
Patric Gruber 2023-04-03 21:29:17 +02:00
parent 58c507ee45
commit 0370e3cd65
2 changed files with 1 additions and 2 deletions

View file

@ -37,7 +37,6 @@ void HeartRateTask::Work() {
state = States::Idle; state = States::Idle;
} else if (state == States::Measuring) { } else if (state == States::Measuring) {
state = States::BackgroundWaiting; state = States::BackgroundWaiting;
backgroundMeasurementWaitingStart = xTaskGetTickCount();
StopMeasurement(); StopMeasurement();
} }
break; break;

View file

@ -42,7 +42,7 @@ namespace Pinetime {
Controllers::HeartRateController& controller; Controllers::HeartRateController& controller;
Controllers::Ppg ppg; Controllers::Ppg ppg;
int lastBpm = 0; int lastBpm = 0;
TickType_t backgroundMeasurementWaitingStart; TickType_t backgroundMeasurementWaitingStart = 0;
}; };
} }