summaryrefslogtreecommitdiff
path: root/src/logging/NrfLogger.cpp
diff options
context:
space:
mode:
authorKieran Cawthray <kieranc@gmail.com>2021-05-18 17:45:16 +0200
committerKieran Cawthray <kieranc@gmail.com>2021-05-18 17:45:16 +0200
commit6a925292722be365f4efc288c64b023639f0c201 (patch)
tree0d60937546c41844ead44375d6fbee7e6cb3ea0b /src/logging/NrfLogger.cpp
parenta4968b502990f4a9e848c5240be2ee73348dd38e (diff)
Revert "Reset"
This reverts commit 378fa6b4016b65e2d7b128fdc3ce89c4ca779a4d.
Diffstat (limited to 'src/logging/NrfLogger.cpp')
-rw-r--r--src/logging/NrfLogger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logging/NrfLogger.cpp b/src/logging/NrfLogger.cpp
index 70a00e61..1c048f2c 100644
--- a/src/logging/NrfLogger.cpp
+++ b/src/logging/NrfLogger.cpp
@@ -12,8 +12,9 @@ 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*) {
@@ -21,7 +22,7 @@ void NrfLogger::Process(void*) {
// Suppress endless loop diagnostic
#pragma clang diagnostic push
#pragma ide diagnostic ignored "EndlessLoop"
- while (1) {
+ while (true) {
NRF_LOG_FLUSH();
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
}