diff options
Diffstat (limited to 'src/displayapp/screens/WatchFaceAnalog24.cpp')
| -rw-r--r-- | src/displayapp/screens/WatchFaceAnalog24.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/displayapp/screens/WatchFaceAnalog24.cpp b/src/displayapp/screens/WatchFaceAnalog24.cpp index 875c0f1..5e37e7b 100644 --- a/src/displayapp/screens/WatchFaceAnalog24.cpp +++ b/src/displayapp/screens/WatchFaceAnalog24.cpp @@ -241,7 +241,12 @@ void WatchFaceAnalog24::Refresh() { if (heartbeat.IsUpdated() || heartbeatRunning.IsUpdated()) { if (heartbeatRunning.Get()) { lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x770505)); - lv_label_set_text_fmt(heartbeatValue, "%d", heartbeat.Get()); + auto v = heartbeat.Get(); + if (v != 0) { + lv_label_set_text_fmt(heartbeatValue, "%d", v); + } else { + lv_label_set_text_static(heartbeatValue, ""); + } } else { lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x111111)); lv_label_set_text_static(heartbeatValue, ""); |
