Skip to content

Commit 9a06545

Browse files
committed
Fixes comments
1 parent 4c822e8 commit 9a06545

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/displayapp/screens/WatchFaceInfineat.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ void WatchFaceInfineat::Refresh() {
434434

435435
batteryPercentRemaining = batteryController.PercentRemaining();
436436
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);
441441
if (chargingBatteryPercent > 100) {
442442
chargingBatteryPercent = batteryPercentRemaining.Get();
443443
}

0 commit comments

Comments
 (0)