Fix setting removing it self from wake settings when opening calibration window twice.

This commit is contained in:
Tim Keller
2021-11-12 00:53:27 +00:00
parent f86c71b2bb
commit e82469bffa
2 changed files with 4 additions and 3 deletions

View File

@@ -63,6 +63,7 @@ SettingShakeThreshold::SettingShakeThreshold(DisplayApp* app,
vDecay = xTaskGetTickCount();
calibrating = false;
EnableForCal = false;
if(!settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake)){
EnableForCal = true;
settingsController.setWakeUpMode(Pinetime::Controllers::Settings::WakeUpMode::Shake,true);