diff options
author | James A. Jerkins <evergreen@jamesjerkinscomputer.com> | 2021-12-23 20:30:14 -0600 |
---|---|---|
committer | James A. Jerkins <evergreen@jamesjerkinscomputer.com> | 2021-12-23 20:30:14 -0600 |
commit | 319030d9e16e833cf8bff569a9ecfa452165ea27 (patch) | |
tree | ae2890204710ac41fd7f637ac1c367c09f671009 /src/components/ble/BleController.cpp | |
parent | 3b0b48020d96353fc6cd114aa80fc2fec98363a3 (diff) |
Add airplane mode feature
Implements 'Airplane mode' feature to disable and enable bluetooth/ble
Adds airplaneMode as a non-persisted setting
Adds a setting menu for switching airplane mode on and off
Displays an airplane symbol on the Digital watch face and the
PineTimeStyle watch face when airplane mode is enabled
Always enables bluetooth/ble on boot (disable airplane mode)
Alphabetizes the settings menu options
Style cleanups
Closes #632
Diffstat (limited to 'src/components/ble/BleController.cpp')
-rw-r--r-- | src/components/ble/BleController.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/ble/BleController.cpp b/src/components/ble/BleController.cpp index a80c9719..0e1c5d7e 100644 --- a/src/components/ble/BleController.cpp +++ b/src/components/ble/BleController.cpp @@ -2,12 +2,12 @@ using namespace Pinetime::Controllers; -void Ble::Connect() { - isConnected = true; +void Ble::SetConnectState(Ble::ConnectStates newState) { + connectionState = newState; } -void Ble::Disconnect() { - isConnected = false; +Ble::ConnectStates Ble::GetConnectState() const { + return connectionState; } void Ble::StartFirmwareUpdate() { |