summaryrefslogtreecommitdiff
path: root/src/components/settings
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-10 11:00:50 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-10 11:19:45 (GMT)
commit4f46da35b4a1b0a708594cb91343b921928d6a01 (patch)
tree91d20252a8ff11648f9449cebaa29702ce0a6438 /src/components/settings
parent9f68f5b227ad3c83130d7cc521c80b6caf974466 (diff)
Bluetooth Passkey Toggle setting
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/Settings.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 34e1af4..2d5f1d5 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -211,10 +211,18 @@ namespace Pinetime {
return bleRadioEnabled;
};
+ void SetBluetoothPasskeyEnabled(bool enabled) {
+ settings.bluetoothPasskeyEnabled = enabled;
+ };
+
+ bool GetBluetoothPasskeyEnabled() const {
+ return settings.bluetoothPasskeyEnabled;
+ };
+
private:
Pinetime::Controllers::FS& fs;
- static constexpr uint32_t settingsVersion = 0x0003;
+ static constexpr uint32_t settingsVersion = 0x3505;
struct SettingsData {
uint32_t version = settingsVersion;
uint32_t stepsGoal = 10000;
@@ -232,6 +240,7 @@ namespace Pinetime {
uint16_t shakeWakeThreshold = 150;
Controllers::BrightnessController::Levels brightLevel = Controllers::BrightnessController::Levels::Medium;
+ bool bluetoothPasskeyEnabled = false;
};
SettingsData settings;