Skip to content

Commit fba6998

Browse files
committed
Remove duplicate check
1 parent 09cfb6e commit fba6998

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/systemtask/SystemTask.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,11 @@ void SystemTask::UpdateMotion() {
461461
(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) &&
462462
motionController.CurrentShakeSpeed() > settingsController.GetShakeThreshold())) {
463463
GoToRunning();
464+
} else if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) &&
465+
state == SystemTaskState::Running && motionController.ShouldLowerSleep()) {
466+
GoToSleep();
464467
}
465468
}
466-
if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) && state == SystemTaskState::Running &&
467-
motionController.ShouldLowerSleep() && (settingsController.GetNotificationStatus() != Controllers::Settings::Notification::Sleep)) {
468-
GoToSleep();
469-
}
470469
}
471470

472471
void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {

0 commit comments

Comments
 (0)