From 63635381b0bcc336a5fa219267a993c63dfcf6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Milants?= Date: Fri, 16 Apr 2021 20:05:46 +0200 Subject: [PATCH] Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'. --- src/systemtask/SystemTask.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index b540fcd8..3e315eec 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();