1
0
Fork 0

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(); vDecay = xTaskGetTickCount();
calibrating = false; calibrating = false;
EnableForCal = false;
if(!settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake)){ if(!settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake)){
EnableForCal = true; EnableForCal = true;
settingsController.setWakeUpMode(Pinetime::Controllers::Settings::WakeUpMode::Shake,true); settingsController.setWakeUpMode(Pinetime::Controllers::Settings::WakeUpMode::Shake,true);

View file

@ -57,10 +57,10 @@ std::unique_ptr<Screen> Settings::CreateScreen2() {
std::unique_ptr<Screen> Settings::CreateScreen3() { std::unique_ptr<Screen> Settings::CreateScreen3() {
std::array<Screens::List::Applications, 4> applications {{{Symbols::paintbrush, "PTS Colors", Apps::SettingPineTimeStyle}, std::array<Screens::List::Applications, 4> applications {{{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
{Symbols::none, "Wake Sense", Apps::SettingShakeThreshold},
{Symbols::check, "Firmware", Apps::FirmwareValidation}, {Symbols::check, "Firmware", Apps::FirmwareValidation},
{Symbols::list, "About", Apps::SysInfo} {Symbols::list, "About", Apps::SysInfo},
{Symbols::none, "None", Apps::None}
}}; }};