summaryrefslogtreecommitdiff
path: root/src/systemtask/SystemMonitor.cpp
diff options
context:
space:
mode:
authorFinlay Davidson <finlay.davidson@coderclass.nl>2022-05-09 17:16:08 +0200
committerRiku Isokoski <riksu9000@gmail.com>2022-06-05 09:15:46 +0300
commit7f45538eb53235ab4015fcf13533796c8759c7bc (patch)
tree79d9a2f60e8fb13cb5356bcc5c6e93259449530b /src/systemtask/SystemMonitor.cpp
parent718fbdab98ae80923a548ac03b7843f5d618a4f6 (diff)
Apply clang-format to all C++ files
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 90765e30..2edee7bf 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