summaryrefslogtreecommitdiff
path: root/src/displayapp
diff options
context:
space:
mode:
authorAvamander <avamander@gmail.com>2021-05-14 09:40:46 (GMT)
committerAvamander <avamander@gmail.com>2021-05-14 09:40:46 (GMT)
commit33f965f326e13c05e47d51646bb7138782040150 (patch)
treec76a31c5fa4b31d3f2cc8703fc3985d79f8d7d72 /src/displayapp
parentc82dee2def76c59229aca4ecd5524a19114d4579 (diff)
Switched to booleans for infinite while loops
Diffstat (limited to 'src/displayapp')
-rw-r--r--src/displayapp/DisplayApp.cpp2
-rw-r--r--src/displayapp/DisplayAppRecovery.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index 3a20c76..9c9116b 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -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();
}
}
diff --git a/src/displayapp/DisplayAppRecovery.cpp b/src/displayapp/DisplayAppRecovery.cpp
index 6db987f..f232f87 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();
}
}