aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/WatchFaceInfineat.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2023-04-05 21:46:15 +0300
committerRiku Isokoski <riksu9000@gmail.com>2023-04-16 14:15:49 +0000
commit348d3de60bc61f04f11f5409c5950afb22aeb788 (patch)
tree0bc8193f25142c3e20e8ea1f770a406dbaa52109 /src/displayapp/screens/WatchFaceInfineat.cpp
parente4a6f6ad778bbccf48e3139622d602dcab1d0389 (diff)
Watchfaces: Assume motionsensor is ok
The watch face shouldn't and doesn't start before the sensor is ready.
Diffstat (limited to 'src/displayapp/screens/WatchFaceInfineat.cpp')
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/WatchFaceInfineat.cpp b/src/displayapp/screens/WatchFaceInfineat.cpp
index 88e17b79..3308303d 100644
--- a/src/displayapp/screens/WatchFaceInfineat.cpp
+++ b/src/displayapp/screens/WatchFaceInfineat.cpp
@@ -452,8 +452,7 @@ void WatchFaceInfineat::Refresh() {
}
stepCount = motionController.NbSteps();
- motionSensorOk = motionController.IsSensorOk();
- if (stepCount.IsUpdated() || motionSensorOk.IsUpdated()) {
+ if (stepCount.IsUpdated()) {
lv_label_set_text_fmt(stepValue, "%lu", stepCount.Get());
lv_obj_align(stepValue, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 10, 0);
lv_obj_align(stepIcon, stepValue, LV_ALIGN_OUT_LEFT_MID, -5, 0);