Actually save the threshold

Prevent a few crashes due to an LV task being active when it shouldnt be.
This commit is contained in:
Tim Keller
2021-09-28 04:21:47 +00:00
parent d2510d7926
commit f780ac999a
3 changed files with 23 additions and 8 deletions

View File

@@ -115,7 +115,11 @@ namespace Pinetime {
};
void SetShakeThreshold(uint16_t thresh){
settings.shakeWakeThreshold = thresh;
if(settings.shakeWakeThreshold != thresh){
settings.shakeWakeThreshold = thresh;
settingsChanged = true;
}
}
int16_t GetShakeThreshold() const{