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/displayapp/screens/WatchFaceDigital.h | |
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/displayapp/screens/WatchFaceDigital.h')
-rw-r--r-- | src/displayapp/screens/WatchFaceDigital.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.h b/src/displayapp/screens/WatchFaceDigital.h index 627154c8..addb539a 100644 --- a/src/displayapp/screens/WatchFaceDigital.h +++ b/src/displayapp/screens/WatchFaceDigital.h @@ -6,6 +6,7 @@ #include <memory> #include "displayapp/screens/Screen.h" #include "components/datetime/DateTimeController.h" +#include "components/ble/BleController.h" namespace Pinetime { namespace Controllers { @@ -38,13 +39,13 @@ namespace Pinetime { char displayedChar[5] {}; uint16_t currentYear = 1970; - Pinetime::Controllers::DateTime::Months currentMonth = Pinetime::Controllers::DateTime::Months::Unknown; - Pinetime::Controllers::DateTime::Days currentDayOfWeek = Pinetime::Controllers::DateTime::Days::Unknown; + Controllers::DateTime::Months currentMonth = Pinetime::Controllers::DateTime::Months::Unknown; + Controllers::DateTime::Days currentDayOfWeek = Pinetime::Controllers::DateTime::Days::Unknown; uint8_t currentDay = 0; DirtyValue<uint8_t> batteryPercentRemaining {}; DirtyValue<bool> powerPresent {}; - DirtyValue<bool> bleState {}; + DirtyValue<Controllers::Ble::ConnectStates> bleState {}; DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {}; DirtyValue<bool> motionSensorOk {}; DirtyValue<uint32_t> stepCount {}; |