aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/WatchFaceInfineat.h
diff options
context:
space:
mode:
authorSteveis <SteveAmor@users.noreply.github.com>2025-02-26 23:16:20 +0000
committerGitHub <noreply@github.com>2025-02-26 23:16:20 +0000
commit728da0f4a08d327344aeaf4bf2730a0ce74ab74f (patch)
tree088f7d2ed32d7b2ddcf870a1753e407057e36ca7 /src/displayapp/screens/WatchFaceInfineat.h
parent993118a3bc5400e0b09a58fa1aa0bc8ae72634a2 (diff)
Fix Infineat crash when charging with AOD (#2256)
Optimise the battery animation to not use 100% CPU (which causes DisplayApp to spin forever with AOD) (DisplayApp also needs to be fixed in the future so it cannot spin infinitely)
Diffstat (limited to 'src/displayapp/screens/WatchFaceInfineat.h')
-rw-r--r--src/displayapp/screens/WatchFaceInfineat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceInfineat.h b/src/displayapp/screens/WatchFaceInfineat.h
index 55c43f98..78d020f1 100644
--- a/src/displayapp/screens/WatchFaceInfineat.h
+++ b/src/displayapp/screens/WatchFaceInfineat.h
@@ -47,6 +47,7 @@ namespace Pinetime {
private:
uint32_t savedTick = 0;
uint8_t chargingBatteryPercent = 101; // not a mistake ;)
+ TickType_t chargingAnimationTick = 0;
Utility::DirtyValue<uint8_t> batteryPercentRemaining {};
Utility::DirtyValue<bool> isCharging {};