File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,12 +102,8 @@ void HeartRateTask::HandleGoToSleep() {
102102 state = States::ScreenOffAndStopped;
103103 break ;
104104 case States::ScreenOnAndMeasuring:
105- if (IsBackgroundMeasurementActivated ()) {
106- state = States::ScreenOffAndMeasuring;
107- } else {
108- state = States::ScreenOffAndWaiting;
109- StopMeasurement ();
110- }
105+ state = States::ScreenOffAndWaiting;
106+ StopMeasurement ();
111107 break ;
112108 case States::ScreenOffAndStopped:
113109 case States::ScreenOffAndWaiting:
Original file line number Diff line number Diff line change 4444 │ │ │ │ │
4545┌──┴────────────────▼─────┐ │ ┌──┴──────────────────▼───┐
4646│ │ │ │ │
47- │ ScreenOffAndStopped │ │ │ ScreenOffAndMeasuring │
47+ │ ScreenOffAndStopped │ │ │ ScreenOffAndWating │
4848│ │ │ │ │
49- └─────────────────────────┘ │ └───▲ ──────────────────┬ ──┘
49+ └─────────────────────────┘ │ └───┬ ──────────────────▲ ──┘
5050 │ │ │
5151 │ Waited Got sensor
5252 │ interval data
5353 │ time │
5454 │ │ │
55- WakeUp ┌───┴ ──────────────────▼ ──┐
55+ WakeUp ┌───▼ ──────────────────┴ ──┐
5656 │ │ │
57- └────┤ ScreenOffAndWaiting │
57+ └────┤ ScreenOffAndMeasuring │
5858 │ │
5959 └─────────────────────────┘
6060 */
You can’t perform that action at this time.
0 commit comments