diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-04-16 18:05:46 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-04-16 18:05:46 (GMT) |
| commit | 63635381b0bcc336a5fa219267a993c63dfcf6be (patch) | |
| tree | b1a25e7673679e4a319b13e9df97aa3673f98582 /src | |
| parent | 36e27842e146ddcfbcd5dcef4ebb2c92955242be (diff) | |
Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index b540fcd..3e315ee 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -284,6 +284,9 @@ void SystemTask::Work() { void SystemTask::UpdateMotion() { if(isGoingToSleep or isWakingUp) return; + if(isSleeping && settingsController.getWakeUpMode() != Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) + return; + if(isSleeping) twiMaster.Wakeup(); |
