diff options
author | Tim Keller <geekboy1011@gmail.com> | 2021-09-28 04:21:47 +0000 |
---|---|---|
committer | Tim Keller <geekboy1011@gmail.com> | 2022-01-04 02:00:02 +0000 |
commit | f780ac999a069b3539f5419b9e07a624ae018030 (patch) | |
tree | 58c0fcec0a348255dc40f7d5c4e257d0ea13ab08 /src/components/settings | |
parent | d2510d7926227df36ff0dcb9fe1b5ea9d586596c (diff) |
Actually save the threshold
Prevent a few crashes due to an LV task being active when it shouldnt be.
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/Settings.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h index e623f3a5..12ac85b5 100644 --- a/src/components/settings/Settings.h +++ b/src/components/settings/Settings.h @@ -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{ |