File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -102,12 +102,8 @@ void HeartRateTask::HandleGoToSleep() {
102
102
state = States::ScreenOffAndStopped;
103
103
break ;
104
104
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 ();
111
107
break ;
112
108
case States::ScreenOffAndStopped:
113
109
case States::ScreenOffAndWaiting:
Original file line number Diff line number Diff line change 44
44
│ │ │ │ │
45
45
┌──┴────────────────▼─────┐ │ ┌──┴──────────────────▼───┐
46
46
│ │ │ │ │
47
- │ ScreenOffAndStopped │ │ │ ScreenOffAndMeasuring │
47
+ │ ScreenOffAndStopped │ │ │ ScreenOffAndWating │
48
48
│ │ │ │ │
49
- └─────────────────────────┘ │ └───▲ ──────────────────┬ ──┘
49
+ └─────────────────────────┘ │ └───┬ ──────────────────▲ ──┘
50
50
│ │ │
51
51
│ Waited Got sensor
52
52
│ interval data
53
53
│ time │
54
54
│ │ │
55
- WakeUp ┌───┴ ──────────────────▼ ──┐
55
+ WakeUp ┌───▼ ──────────────────┴ ──┐
56
56
│ │ │
57
- └────┤ ScreenOffAndWaiting │
57
+ └────┤ ScreenOffAndMeasuring │
58
58
│ │
59
59
└─────────────────────────┘
60
60
*/
You can’t perform that action at this time.
0 commit comments