diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-07-13 20:31:44 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-07-13 20:31:44 +0200 |
commit | af10747c94080123a5847d5258c2cfeb7ec317cb (patch) | |
tree | 7385ab23e93eb7746cf459c64679ddcdaff4fc41 /src/displayapp/screens/SystemInfo.cpp | |
parent | 4f378e8726fdcff72598aa6ed12eeaa6b3e61355 (diff) | |
parent | 3e705548442f1f208c2092ffc865ae824ee0955a (diff) |
Merge branch 'notify-battery-level' into develop
Diffstat (limited to 'src/displayapp/screens/SystemInfo.cpp')
-rw-r--r-- | src/displayapp/screens/SystemInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp index 5ae3a595..f5bf0cc9 100644 --- a/src/displayapp/screens/SystemInfo.cpp +++ b/src/displayapp/screens/SystemInfo.cpp @@ -103,7 +103,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen1() { } std::unique_ptr<Screen> SystemInfo::CreateScreen2() { - auto batteryPercent = static_cast<uint8_t>(batteryController.PercentRemaining()); + auto batteryPercent = batteryController.PercentRemaining(); auto resetReason = [this]() { switch (watchdog.ResetReason()) { case Drivers::Watchdog::ResetReasons::Watchdog: |