Actually save the threshold
Prevent a few crashes due to an LV task being active when it shouldnt be.
This commit is contained in:
parent
d2510d7926
commit
f780ac999a
3 changed files with 23 additions and 8 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue