diff options
Diffstat (limited to 'src/displayapp/screens/WatchFaceDigital.cpp')
| -rw-r--r-- | src/displayapp/screens/WatchFaceDigital.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/displayapp/screens/WatchFaceDigital.cpp b/src/displayapp/screens/WatchFaceDigital.cpp index 79a4640..3b46c3b 100644 --- a/src/displayapp/screens/WatchFaceDigital.cpp +++ b/src/displayapp/screens/WatchFaceDigital.cpp @@ -166,8 +166,7 @@ void WatchFaceDigital::Refresh() { lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(notificationState.Get())); } -#ifndef INFINISIM - temperature = systemTask.motionSensor.temperature_last_read_value+23; + systemTask.ObtainMotionSensorTemperature(temperature); 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", temperature.Get()); @@ -179,7 +178,6 @@ void WatchFaceDigital::Refresh() { ); #endif } -#endif uint8_t second = dateTimeController.Seconds(); uint8_t decisecond = dateTimeController.Deciseconds(); |
