keep measuring when transitioning to background

Co-authored-by: Simon Effenberg <savar@schuldeigen.de>
This commit is contained in:
Patric Gruber 2024-07-17 20:18:31 +02:00 committed by GitHub
parent e6f0a89202
commit 78af44eafe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,8 +102,7 @@ void HeartRateTask::HandleGoToSleep() {
state = States::Idle; state = States::Idle;
break; break;
case States::Measuring: case States::Measuring:
state = States::BackgroundWaiting; state = States::BackgroundMeasuring;
StartWaiting();
break; break;
case States::Idle: case States::Idle:
case States::BackgroundWaiting: case States::BackgroundWaiting: