Actually save the threshold
Prevent a few crashes due to an LV task being active when it shouldnt be.
This commit is contained in:
@@ -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{
|
||||
|
Reference in New Issue
Block a user