aboutsummaryrefslogtreecommitdiffstats
path: root/src/systemtask/SystemTask.h
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-07-13 20:31:44 +0200
committerJean-François Milants <jf@codingfield.com>2021-07-13 20:31:44 +0200
commitaf10747c94080123a5847d5258c2cfeb7ec317cb (patch)
tree7385ab23e93eb7746cf459c64679ddcdaff4fc41 /src/systemtask/SystemTask.h
parent4f378e8726fdcff72598aa6ed12eeaa6b3e61355 (diff)
parent3e705548442f1f208c2092ffc865ae824ee0955a (diff)
Merge branch 'notify-battery-level' into develop
Diffstat (limited to 'src/systemtask/SystemTask.h')
-rw-r--r--src/systemtask/SystemTask.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h
index bfb97264..f8cf6370 100644
--- a/src/systemtask/SystemTask.h
+++ b/src/systemtask/SystemTask.h
@@ -135,6 +135,8 @@ namespace Pinetime {
void GoToRunning();
void UpdateMotion();
bool stepCounterMustBeReset = false;
+ static constexpr TickType_t batteryNotificationPeriod = 1000 * 60 * 10; // 1 tick ~= 1ms. 1ms * 60 * 10 = 10 minutes
+ TickType_t batteryNotificationTick = 0;
#if configUSE_TRACE_FACILITY == 1
SystemMonitor<FreeRtosMonitor> monitor;