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);

View file

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