summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemMonitor.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-06-06 18:27:54 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-06-06 23:09:58 (GMT)
commit7c45f185a32c7bcff47c8fda1acdec82d3213717 (patch)
tree53b0419fe2a19e6ec5c89d0be0a11dcd8d4ceb00 /src/systemtask/SystemMonitor.cpp
parent94b1b330fc1f6e941a797fedabade4e790e28bc2 (diff)
parent35dcf8c8607483c104711c9398d47d57147f4389 (diff)
Merge remote-tracking branch 'origin/develop' into analog24
Diffstat (limited to 'src/systemtask/SystemMonitor.cpp')
-rw-r--r--src/systemtask/SystemMonitor.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/systemtask/SystemMonitor.cpp b/src/systemtask/SystemMonitor.cpp
index 90765e3..2edee7b 100644
--- a/src/systemtask/SystemMonitor.cpp
+++ b/src/systemtask/SystemMonitor.cpp
@@ -1,9 +1,9 @@
#include "systemtask/SystemTask.h"
#if configUSE_TRACE_FACILITY == 1
-// FreeRtosMonitor
-#include <FreeRTOS.h>
-#include <task.h>
-#include <nrf_log.h>
+ // FreeRtosMonitor
+ #include <FreeRTOS.h>
+ #include <task.h>
+ #include <nrf_log.h>
void Pinetime::System::SystemMonitor::Process() {
if (xTaskGetTickCount() - lastTick > 10000) {
@@ -14,13 +14,14 @@ void Pinetime::System::SystemMonitor::Process() {
NRF_LOG_INFO("Task [%s] - %d", tasksStatus[i].pcTaskName, tasksStatus[i].usStackHighWaterMark);
if (tasksStatus[i].usStackHighWaterMark < 20)
NRF_LOG_INFO("WARNING!!! Task %s task is nearly full, only %dB available",
- tasksStatus[i].pcTaskName,
- tasksStatus[i].usStackHighWaterMark * 4);
+ tasksStatus[i].pcTaskName,
+ tasksStatus[i].usStackHighWaterMark * 4);
}
lastTick = xTaskGetTickCount();
}
}
#else
// DummyMonitor
-void Pinetime::System::SystemMonitor::Process() {}
+void Pinetime::System::SystemMonitor::Process() {
+}
#endif