Skip to content

Commit 6363538

Browse files
committed
Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.
1 parent 36e2784 commit 6363538

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/systemtask/SystemTask.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ void SystemTask::Work() {
284284
void SystemTask::UpdateMotion() {
285285
if(isGoingToSleep or isWakingUp) return;
286286

287+
if(isSleeping && settingsController.getWakeUpMode() != Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist)
288+
return;
289+
287290
if(isSleeping)
288291
twiMaster.Wakeup();
289292

0 commit comments

Comments
 (0)