Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.

This commit is contained in:
Jean-François Milants 2021-04-16 20:05:46 +02:00
parent 36e27842e1
commit 63635381b0

View File

@ -284,6 +284,9 @@ void SystemTask::Work() {
void SystemTask::UpdateMotion() { void SystemTask::UpdateMotion() {
if(isGoingToSleep or isWakingUp) return; if(isGoingToSleep or isWakingUp) return;
if(isSleeping && settingsController.getWakeUpMode() != Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist)
return;
if(isSleeping) if(isSleeping)
twiMaster.Wakeup(); twiMaster.Wakeup();