summaryrefslogtreecommitdiff
path: root/src/logging
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-05-18 15:23:26 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-05-18 15:33:25 +0200
commit378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d (patch)
treef4aa571df53901a0cbc00d1ac9a86e23b7194180 /src/logging
parent9ab298c09e273479822d10aad9f7bfe1d287ce75 (diff)
Reset
Diffstat (limited to 'src/logging')
-rw-r--r--src/logging/NrfLogger.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/logging/NrfLogger.cpp b/src/logging/NrfLogger.cpp
index 1c048f2c..70a00e61 100644
--- a/src/logging/NrfLogger.cpp
+++ b/src/logging/NrfLogger.cpp
@@ -12,9 +12,8 @@ void NrfLogger::Init() {
NRF_LOG_DEFAULT_BACKENDS_INIT();
- if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread)) {
+ if (pdPASS != xTaskCreate(NrfLogger::Process, "LOGGER", 200, this, 0, &m_logger_thread))
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
- }
}
void NrfLogger::Process(void*) {
@@ -22,7 +21,7 @@ void NrfLogger::Process(void*) {
// Suppress endless loop diagnostic
#pragma clang diagnostic push
#pragma ide diagnostic ignored "EndlessLoop"
- while (true) {
+ while (1) {
NRF_LOG_FLUSH();
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
}