Skip to content

Commit

Permalink
Disable the reading of the motion values in sleep mode when the wake …
Browse files Browse the repository at this point in the history
…up mode is not 'wrist rotation'.
  • Loading branch information
JF002 committed Apr 16, 2021
1 parent 36e2784 commit 6363538
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/systemtask/SystemTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6363538

Please sign in to comment.