summaryrefslogtreecommitdiff
path: root/src/components/settings/Settings.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-06-06 18:27:54 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-06-06 23:09:58 (GMT)
commit7c45f185a32c7bcff47c8fda1acdec82d3213717 (patch)
tree53b0419fe2a19e6ec5c89d0be0a11dcd8d4ceb00 /src/components/settings/Settings.h
parent94b1b330fc1f6e941a797fedabade4e790e28bc2 (diff)
parent35dcf8c8607483c104711c9398d47d57147f4389 (diff)
Merge remote-tracking branch 'origin/develop' into analog24
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r--src/components/settings/Settings.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 5914e1a..393a734 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -140,15 +140,14 @@ namespace Pinetime {
return settings.screenTimeOut;
};
- void SetShakeThreshold(uint16_t thresh){
- if(settings.shakeWakeThreshold != thresh){
- settings.shakeWakeThreshold = thresh;
- settingsChanged = true;
+ void SetShakeThreshold(uint16_t thresh) {
+ if (settings.shakeWakeThreshold != thresh) {
+ settings.shakeWakeThreshold = thresh;
+ settingsChanged = true;
}
-
}
- int16_t GetShakeThreshold() const{
+ int16_t GetShakeThreshold() const {
return settings.shakeWakeThreshold;
}
@@ -195,20 +194,20 @@ namespace Pinetime {
if (goal != settings.stepsGoal) {
settingsChanged = true;
}
- settings.stepsGoal = goal;
+ settings.stepsGoal = goal;
};
-
+
uint32_t GetStepsGoal() const {
return settings.stepsGoal;
};
- void SetBleRadioEnabled(bool enabled) {
- bleRadioEnabled = enabled;
- };
+ void SetBleRadioEnabled(bool enabled) {
+ bleRadioEnabled = enabled;
+ };
- bool GetBleRadioEnabled() const {
- return bleRadioEnabled;
- };
+ bool GetBleRadioEnabled() const {
+ return bleRadioEnabled;
+ };
void SetBluetoothPasskeyEnabled(bool enabled) {
settings.bluetoothPasskeyEnabled = enabled;