Skip to content

Commit de7238a

Browse files
committed
Adds comment on height of animation
1 parent 45f1ec7 commit de7238a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/displayapp/screens/WatchFaceInfineat.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void WatchFaceInfineat::Refresh() {
435435
batteryPercentRemaining = batteryController.PercentRemaining();
436436
isCharging = batteryController.IsCharging();
437437
if (batteryController.IsCharging() && (xTaskGetTickCount() - chargingAnimationTick > pdMS_TO_TICKS(150))) { // Charging battery animation
438-
chargingBatteryPercent += 100 / lv_obj_get_height(logoPine);
438+
chargingBatteryPercent += 100 / lv_obj_get_height(logoPine); // Dividing 100 by the height gives the battery percentage required to shift the animation by 1 pixel
439439
if (chargingBatteryPercent > 100) {
440440
chargingBatteryPercent = batteryPercentRemaining.Get();
441441
}

0 commit comments

Comments
 (0)