From be16ef0d56c471dc905c10e8708a107285639d0b Mon Sep 17 00:00:00 2001 From: Diego Miguel Date: Wed, 2 Mar 2022 00:34:39 +0100 Subject: Update BLE controller in Infineat watchface --- src/displayapp/screens/WatchFaceInfineat.cpp | 3 ++- src/displayapp/screens/WatchFaceInfineat.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/displayapp') 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 batteryPercentRemaining {}; DirtyValue powerPresent {}; DirtyValue bleState {}; + DirtyValue bleRadioEnabled {}; DirtyValue> currentDateTime {}; DirtyValue motionSensorOk {}; DirtyValue stepCount {}; -- cgit v1.2.3