Skip to content

Commit 1295c46

Browse files
author
Scott Powell
committed
* companion: minor refactor of who should invoke UITask::loop()
1 parent 39cc221 commit 1295c46

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/companion_radio/MyMesh.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,7 +1474,6 @@ void MyMesh::loop() {
14741474

14751475
#ifdef DISPLAY_CLASS
14761476
ui_task.setHasConnection(_serial->isConnected());
1477-
ui_task.loop();
14781477
#endif
14791478
}
14801479

examples/companion_radio/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,7 @@ void setup() {
193193
void loop() {
194194
the_mesh.loop();
195195
sensors.loop();
196+
#ifdef DISPLAY_CLASS
197+
ui_task.loop();
198+
#endif
196199
}

0 commit comments

Comments
 (0)