diff options
Diffstat (limited to 'src/SystemTask/SystemTask.h')
-rw-r--r-- | src/SystemTask/SystemTask.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SystemTask/SystemTask.h b/src/SystemTask/SystemTask.h index ab5f7010..860647a1 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 { @@ -65,6 +66,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; @@ -72,6 +74,12 @@ namespace Pinetime { bool doNotGoToSleep = false; void GoToRunning(); + +#if configUSE_TRACE_FACILITY == 1 + SystemMonitor<FreeRtosMonitor> monitor; +#else + SystemMonitor<DummyMonitor> monitor; +#endif }; } }
\ No newline at end of file |