summaryrefslogtreecommitdiff
path: root/src/components/settings/Settings.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2022-02-20 15:40:49 +0100
committerJean-François Milants <jf@codingfield.com>2022-02-20 15:40:49 +0100
commitef44b763d94cc6ff1be6f75ff3e638d7d356e99e (patch)
treea10a4068c592f13057edf3d1f2a94137becd95b8 /src/components/settings/Settings.h
parent40cdb547727d99ff140a029ae30980001e4a68f6 (diff)
Merge branch 'airplane-mode' of https://github.com/evergreen22/InfiniTime into evergreen22-airplane-mode
Apply a few changes that were requested in the PR during the review. # Conflicts: # src/CMakeLists.txt # src/displayapp/Apps.h # src/displayapp/DisplayApp.cpp # src/displayapp/Messages.h # src/displayapp/screens/settings/Settings.cpp
Diffstat (limited to 'src/components/settings/Settings.h')
-rw-r--r--src/components/settings/Settings.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/settings/Settings.h b/src/components/settings/Settings.h
index 9878aac5..24a82607 100644
--- a/src/components/settings/Settings.h
+++ b/src/components/settings/Settings.h
@@ -202,12 +202,12 @@ namespace Pinetime {
return settings.stepsGoal;
};
- void SetAirplaneMode(bool mode) {
- airplaneMode = mode;
+ void SetBleRadioEnabled(bool enabled) {
+ bleRadioEnabled = enabled;
};
- bool GetAirplaneMode() const {
- return airplaneMode;
+ bool GetBleRadioEnabled() const {
+ return bleRadioEnabled;
};
private:
@@ -240,7 +240,7 @@ namespace Pinetime {
/* airplaneMode is intentionally not saved with the other watch settings and initialized
* to off (false) on every boot because we always want ble to be enabled on startup
*/
- bool airplaneMode = false;
+ bool bleRadioEnabled = true;
void LoadSettingsFromFile();
void SaveSettingsToFile();