diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2021-10-04 01:41:38 +0300 |
---|---|---|
committer | Riku Isokoski <riksu9000@gmail.com> | 2021-10-04 01:41:38 +0300 |
commit | a9f7153fdf92b097b14143b77645f6608ac1bf9c (patch) | |
tree | 1876a6716f5e4cc4ec5149de6982937f95a0d694 /src/systemtask/SystemTask.h | |
parent | b84a54692050d7c665e568e8e2007932e9cd94d0 (diff) |
Improve battery percentage calculation and reporting
While charging, percentage should only go up, and while discharging,
percentage should only go down.
Diffstat (limited to 'src/systemtask/SystemTask.h')
-rw-r--r-- | src/systemtask/SystemTask.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h index 1fcfeb8a..879c1be8 100644 --- a/src/systemtask/SystemTask.h +++ b/src/systemtask/SystemTask.h @@ -133,14 +133,12 @@ namespace Pinetime { TimerHandle_t dimTimer; TimerHandle_t idleTimer; TimerHandle_t measureBatteryTimer; - bool sendBatteryNotification = false; bool doNotGoToSleep = false; void GoToRunning(); void UpdateMotion(); bool stepCounterMustBeReset = false; static constexpr TickType_t batteryMeasurementPeriod = pdMS_TO_TICKS(10 * 60 * 1000); - TickType_t lastBatteryNotificationTime = 0; #if configUSE_TRACE_FACILITY == 1 SystemMonitor<FreeRtosMonitor> monitor; |