From 1037b7239e2aff74b5b423e4eda881cedcbe1b56 Mon Sep 17 00:00:00 2001 From: Michele Bini Date: Thu, 31 Mar 2022 09:53:00 +0200 Subject: Fix for motion sensor thermometer diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index 44af905..3fbb373 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -349,7 +349,7 @@ void WatchFaceDigital::Refresh() { temperature = systemTask.motionSensor.temperature_last_read_value+23; if (temperature.IsUpdated()) { lv_obj_set_style_local_text_color( label_temp, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x999999)); - lv_label_set_text_fmt(label_temp, "%d°C"); + lv_label_set_text_fmt(label_temp, "%d°C", temperature); #if 0 lv_label_set_text_fmt(label_temp, "T%d [%d,%d]", ((int)(systemTask.motionSensor.temperature_last_read_value+23)), -- cgit v0.10.2