diff options
| author | JF <JF002@users.noreply.github.com> | 2021-10-03 16:13:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-03 16:13:39 +0200 |
| commit | fa6c291d3ef9358af9754782ffb4fe6c0f6916dd (patch) | |
| tree | c5bbcdcd592c04af08b914de5ff9142d08a356ee /src/displayapp/screens/WatchFaceAnalog.h | |
| parent | 3442085a3c03fcc0975d1c8c46a838bc18ae5574 (diff) | |
| parent | 980ac173888883b34367395fdf8ee76c0aea6f72 (diff) | |
Merge pull request #638 from Riksu9000/detect_full_charge
Detect full charge and improve watchface battery display
Diffstat (limited to 'src/displayapp/screens/WatchFaceAnalog.h')
| -rw-r--r-- | src/displayapp/screens/WatchFaceAnalog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/displayapp/screens/WatchFaceAnalog.h b/src/displayapp/screens/WatchFaceAnalog.h index 406f4d50..001414a6 100644 --- a/src/displayapp/screens/WatchFaceAnalog.h +++ b/src/displayapp/screens/WatchFaceAnalog.h @@ -49,6 +49,7 @@ namespace Pinetime { uint8_t currentDay = 0; DirtyValue<uint8_t> batteryPercentRemaining {0}; + DirtyValue<bool> isCharging {}; DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds>> currentDateTime; DirtyValue<bool> notificationState {false}; @@ -81,6 +82,7 @@ namespace Pinetime { Controllers::Settings& settingsController; void UpdateClock(); + void SetBatteryIcon(); lv_task_t* taskRefresh; }; |
