Merge pull request #349 from Avamander/patch-2
Switched to booleans for infinite while loops
This commit is contained in:
commit
204d63697c
|
@ -86,7 +86,7 @@ void DisplayApp::Process(void* instance) {
|
||||||
// Send a dummy notification to unlock the lvgl display driver for the first iteration
|
// Send a dummy notification to unlock the lvgl display driver for the first iteration
|
||||||
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
|
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
|
||||||
|
|
||||||
while (1) {
|
while (true) {
|
||||||
app->Refresh();
|
app->Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ void DisplayApp::Process(void* instance) {
|
||||||
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
|
xTaskNotifyGive(xTaskGetCurrentTaskHandle());
|
||||||
|
|
||||||
app->InitHw();
|
app->InitHw();
|
||||||
while (1) {
|
while (true) {
|
||||||
app->Refresh();
|
app->Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ void NrfLogger::Process(void*) {
|
||||||
// Suppress endless loop diagnostic
|
// Suppress endless loop diagnostic
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma ide diagnostic ignored "EndlessLoop"
|
#pragma ide diagnostic ignored "EndlessLoop"
|
||||||
while (1) {
|
while (true) {
|
||||||
NRF_LOG_FLUSH();
|
NRF_LOG_FLUSH();
|
||||||
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
|
vTaskDelay(100); // Not good for power consumption, it will wake up every 100ms...
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue