summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Miguel <dmlls@diegomiguel.me>2022-03-02 00:34:39 +0100
committerDiego Miguel <dmlls@diegomiguel.me>2022-06-11 16:56:35 +0200
commitbe16ef0d56c471dc905c10e8708a107285639d0b (patch)
tree65c2717567fa083e15bb94b0afc5d2cc7f8fe21a
parent8f54332e5d036e2b13b6764045efcbc0dc169113 (diff)
Update BLE controller in Infineat watchface
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.cpp3
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.h1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 78c925ad..8b038cde 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -422,6 +422,7 @@ list(APPEND SOURCE_FILES
## Watch faces
displayapp/icons/bg_clock.c
+ displayapp/icons/logo_pine.c
displayapp/screens/WatchFaceAnalog.cpp
displayapp/screens/WatchFaceDigital.cpp
displayapp/screens/WatchFaceInfineat.cpp
diff --git a/src/displayapp/screens/WatchFaceInfineat.cpp b/src/displayapp/screens/WatchFaceInfineat.cpp
index 4d9ec1e6..5ca7d70d 100644
--- a/src/displayapp/screens/WatchFaceInfineat.cpp
+++ b/src/displayapp/screens/WatchFaceInfineat.cpp
@@ -428,8 +428,9 @@ void WatchFaceInfineat::Refresh() {
}
bleState = bleController.IsConnected();
+ bleRadioEnabled = bleController.IsRadioEnabled();
if (bleState.IsUpdated()) {
- lv_label_set_text(bleIcon, BleIcon::GetIcon(bleState.Get()));
+ lv_label_set_text(bleIcon, BleIcon::GetIcon(bleRadioEnabled.Get(), bleState.Get()));
lv_obj_align(bleIcon, labelDate, LV_ALIGN_OUT_BOTTOM_MID, 0, 3);
}
diff --git a/src/displayapp/screens/WatchFaceInfineat.h b/src/displayapp/screens/WatchFaceInfineat.h
index 66a29784..77730062 100644
--- a/src/displayapp/screens/WatchFaceInfineat.h
+++ b/src/displayapp/screens/WatchFaceInfineat.h
@@ -48,6 +48,7 @@ namespace Pinetime {
DirtyValue<uint8_t> batteryPercentRemaining {};
DirtyValue<bool> powerPresent {};
DirtyValue<bool> bleState {};
+ DirtyValue<bool> bleRadioEnabled {};
DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime {};
DirtyValue<bool> motionSensorOk {};
DirtyValue<uint32_t> stepCount {};