summaryrefslogtreecommitdiff
path: root/src/SystemTask/SystemTask.h
diff options
context:
space:
mode:
authorAdam Pigg <adam@piggz.co.uk>2020-07-11 21:41:20 +0100
committerAdam Pigg <adam@piggz.co.uk>2020-07-11 21:41:20 +0100
commit789e06fdb77704fa5da12355ad5f1d8c9d4455e5 (patch)
tree56972f902675749e0df58e91d8670dd5215d677e /src/SystemTask/SystemTask.h
parent7a1e6e6e5bf187846bd533f04ee58e04798f0035 (diff)
parent6309719a62436fd746a7a8b228205e93b419ca26 (diff)
Merge branch 'develop' of https://github.com/JF002/Pinetime into music
Diffstat (limited to 'src/SystemTask/SystemTask.h')
-rw-r--r--src/SystemTask/SystemTask.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SystemTask/SystemTask.h b/src/SystemTask/SystemTask.h
index e2325bd6..5a51a776 100644
--- a/src/SystemTask/SystemTask.h
+++ b/src/SystemTask/SystemTask.h
@@ -10,6 +10,7 @@
#include <drivers/Watchdog.h>
#include <Components/Ble/NimbleController.h>
#include <drivers/SpiNorFlash.h>
+#include "SystemMonitor.h"
namespace Pinetime {
namespace System {
@@ -67,6 +68,7 @@ namespace Pinetime {
static void Process(void* instance);
void Work();
+ void ReloadIdleTimer() const;
bool isBleDiscoveryTimerRunning = false;
uint8_t bleDiscoveryTimer = 0;
static constexpr uint32_t idleTime = 15000;
@@ -74,6 +76,12 @@ namespace Pinetime {
bool doNotGoToSleep = false;
void GoToRunning();
+
+#if configUSE_TRACE_FACILITY == 1
+ SystemMonitor<FreeRtosMonitor> monitor;
+#else
+ SystemMonitor<DummyMonitor> monitor;
+#endif
};
}
}