diff options
| author | JF002 <JF002@users.noreply.github.com> | 2021-05-15 07:57:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 07:57:22 (GMT) |
| commit | 204d63697c2c02abfc84f922cb2fc51e02551cf9 (patch) | |
| tree | b8a71f7575dcf3bd5f5ffecab85d20079f5215cf /src | |
| parent | 48018fc1d8e0f279ebaeaaad88d72e334af6e932 (diff) | |
| parent | 33f965f326e13c05e47d51646bb7138782040150 (diff) | |
Merge pull request #349 from Avamander/patch-2
Switched to booleans for infinite while loops
Diffstat (limited to 'src')
| -rw-r--r-- | src/displayapp/DisplayApp.cpp | 2 | ||||
| -rw-r--r-- | src/displayapp/DisplayAppRecovery.cpp | 2 | ||||
| -rw-r--r-- | src/logging/NrfLogger.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index eb05e7c..9ec9640 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -86,7 +86,7 @@ void DisplayApp::Process(void* instance) { // Send a dummy notification to unlock the lvgl display driver for the first iteration xTaskNotifyGive(xTaskGetCurrentTaskHandle()); - while (1) { + while (true) { app->Refresh(); } } diff --git a/src/displayapp/DisplayAppRecovery.cpp b/src/displayapp/DisplayAppRecovery.cpp index 17bdb19..a132a47 100644 --- a/src/displayapp/DisplayAppRecovery.cpp +++ b/src/displayapp/DisplayAppRecovery.cpp @@ -37,7 +37,7 @@ void DisplayApp::Process(void* instance) { xTaskNotifyGive(xTaskGetCurrentTaskHandle()); app->InitHw(); - while (1) { + while (true) { app->Refresh(); } } diff --git a/src/logging/NrfLogger.cpp b/src/logging/NrfLogger.cpp index 6f64aa4..1c048f2 100644 --- a/src/logging/NrfLogger.cpp +++ b/src/logging/NrfLogger.cpp @@ -22,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... } |
