remove background start timestamp reset on sleep
This commit is contained in:
parent
58c507ee45
commit
0370e3cd65
|
@ -37,7 +37,6 @@ void HeartRateTask::Work() {
|
|||
state = States::Idle;
|
||||
} else if (state == States::Measuring) {
|
||||
state = States::BackgroundWaiting;
|
||||
backgroundMeasurementWaitingStart = xTaskGetTickCount();
|
||||
StopMeasurement();
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace Pinetime {
|
|||
Controllers::HeartRateController& controller;
|
||||
Controllers::Ppg ppg;
|
||||
int lastBpm = 0;
|
||||
TickType_t backgroundMeasurementWaitingStart;
|
||||
TickType_t backgroundMeasurementWaitingStart = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue