Only inhibit sleep if motion notifications are enabled, not just Bluetooth
This commit is contained in:
parent
074df0526f
commit
a6cd3679eb
4 changed files with 12 additions and 3 deletions
|
|
@ -417,9 +417,9 @@ void SystemTask::UpdateMotion() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (state == SystemTaskState::Sleeping &&
|
||||
!(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) ||
|
||||
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) || bleController.IsConnected())) {
|
||||
if (state == SystemTaskState::Sleeping && !(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) ||
|
||||
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) ||
|
||||
motionController.GetService()->IsMotionNotificationSubscribed())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue