Disable the reading of the motion values in sleep mode when the wake up mode is not 'wrist rotation'.
This commit is contained in:
parent
36e27842e1
commit
63635381b0
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue