diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 08:37:08 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 20:30:57 (GMT) |
| commit | e679896281f3032994f5b998a21140475d167695 (patch) | |
| tree | 702b7714dd847573963c5b802afa936ff1cadb7b /src/displayapp/screens/WatchFaceDigital.cpp | |
| parent | 1d0023b502563d486a6e8c5d6dffbfdcd4e94c2a (diff) | |
Optimized accelerometer access via system task functions.
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(); |
