Skip to content

Commit

Permalink
Keep updating motion during sleep when Bluetooth is on
Browse files Browse the repository at this point in the history
  • Loading branch information
apilat authored and FintasticMan committed Jan 23, 2024
1 parent a40168a commit 074df05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/systemtask/SystemTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ void SystemTask::UpdateMotion() {
return;
}

if (state == SystemTaskState::Sleeping && !(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) ||
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake))) {
if (state == SystemTaskState::Sleeping &&
!(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) ||
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) || bleController.IsConnected())) {
return;
}

Expand Down

0 comments on commit 074df05

Please sign in to comment.