File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -434,10 +434,10 @@ void WatchFaceInfineat::Refresh() {
434
434
435
435
batteryPercentRemaining = batteryController.PercentRemaining ();
436
436
isCharging = batteryController.IsCharging ();
437
- if (batteryController. IsCharging () && ( xTaskGetTickCount () - chargingAnimationTick > pdMS_TO_TICKS ( 150 ))) { // Charging battery animation
438
- chargingBatteryPercent +=
439
- 100 /
440
- lv_obj_get_height (logoPine); // Dividing 100 by the height gives the battery percentage required to shift the animation by 1 pixel
437
+ // Charging battery animation
438
+ if (batteryController. IsCharging () && ( xTaskGetTickCount () - chargingAnimationTick > pdMS_TO_TICKS ( 150 ))) {
439
+ // Dividing 100 by the height gives the battery percentage required to shift the animation by 1 pixel
440
+ chargingBatteryPercent += 100 / lv_obj_get_height (logoPine);
441
441
if (chargingBatteryPercent > 100 ) {
442
442
chargingBatteryPercent = batteryPercentRemaining.Get ();
443
443
}
You can’t perform that action at this time.
0 commit comments