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;
|
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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue