lowersleep: Implement Lower to Sleep functionality (#827)
This commit is contained in:
parent
2b1eae7f59
commit
0f9f606b78
6 changed files with 29 additions and 13 deletions
|
|
@ -436,6 +436,10 @@ void SystemTask::UpdateMotion() {
|
|||
GoToRunning();
|
||||
}
|
||||
}
|
||||
if (settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::LowerWrist) && state == SystemTaskState::Running &&
|
||||
motionController.ShouldLowerSleep()) {
|
||||
PushMessage(Messages::GoToSleep);
|
||||
}
|
||||
}
|
||||
|
||||
void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue