InfiniTime.git

commit e13172384b8ec3fcb1644ccc974bc64147f17610

Author: Aidan Epstein <aidan@jmad.org>

Wrap PineTimeStyle step counter

This changes the PineTimeStyle step counter gauge continues counting
with wraparound after you achieve your step goal.

 src/displayapp/screens/WatchFacePineTimeStyle.cpp | 2 +-


diff --git a/src/displayapp/screens/WatchFacePineTimeStyle.cpp b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
index 63b421da10a269e1b3e13241871d6cd969ed52f9..8689a98c854c7278115dfe53e21de4afb6db9a73 100644
--- a/src/displayapp/screens/WatchFacePineTimeStyle.cpp
+++ b/src/displayapp/screens/WatchFacePineTimeStyle.cpp
@@ -431,7 +431,7 @@
   stepCount = motionController.NbSteps();
   motionSensorOk = motionController.IsSensorOk();
   if (stepCount.IsUpdated() || motionSensorOk.IsUpdated()) {
-    lv_gauge_set_value(stepGauge, 0, (stepCount.Get() / (settingsController.GetStepsGoal() / 100)));
+    lv_gauge_set_value(stepGauge, 0, (stepCount.Get() / (settingsController.GetStepsGoal() / 100)) % 100);
     lv_obj_realign(stepGauge);
     if (stepCount.Get() > settingsController.GetStepsGoal()) {
       lv_obj_set_style_local_line_color(stepGauge, LV_GAUGE_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);