1
0
Fork 0

Switched to booleans for infinite while loops

This commit is contained in:
Avamander 2021-05-14 12:40:46 +03:00
parent c82dee2def
commit 33f965f326
3 changed files with 3 additions and 3 deletions

View file

@ -85,7 +85,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();
}
}

View file

@ -37,7 +37,7 @@ void DisplayApp::Process(void* instance) {
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
app->InitHw();
while (1) {
while (true) {
app->Refresh();
}
}

View file

@ -21,7 +21,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...
}