Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.
This commit is contained in:
@@ -284,6 +284,9 @@ void SystemTask::Work() {
|
|||||||
void SystemTask::UpdateMotion() {
|
void SystemTask::UpdateMotion() {
|
||||||
if(isGoingToSleep or isWakingUp) return;
|
if(isGoingToSleep or isWakingUp) return;
|
||||||
|
|
||||||
|
if(isSleeping && settingsController.getWakeUpMode() != Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist)
|
||||||
|
return;
|
||||||
|
|
||||||
if(isSleeping)
|
if(isSleeping)
|
||||||
twiMaster.Wakeup();
|
twiMaster.Wakeup();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user