Disable LowerWrist during sleep mode (#2415)
Some checks failed
Build and push Docker image / build (push) Has been cancelled
CI / build-firmware (push) Has been cancelled
CI / build-simulator (push) Has been cancelled
CI / get-base-ref-size (push) Has been cancelled
CI / Compare build size (push) Has been cancelled

This commit is contained in:
kieranc 2026-03-20 09:09:34 +01:00 committed by GitHub
parent f882df9544
commit 6572b508d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,12 +461,11 @@ void SystemTask::UpdateMotion() {
(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) &&
motionController.CurrentShakeSpeed() > settingsController.GetShakeThreshold())) {
GoToRunning();
} else if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) &&
state == SystemTaskState::Running && motionController.ShouldLowerSleep()) {
GoToSleep();
}
}
if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) && state == SystemTaskState::Running &&
motionController.ShouldLowerSleep()) {
GoToSleep();
}
}
void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {