From 196b22503533261189052dfff0a751420abc2293 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 15:50:24 +1300 Subject: [PATCH 1/4] show please wait message on companion boot --- examples/companion_radio/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index d6a6e990..4672e6e6 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -1442,7 +1442,9 @@ void setup() { #ifdef DISPLAY_CLASS if (display.begin()) { disp = &display; - disp->clear(); + disp->startFrame(); + disp->print("Please wait..."); + disp->endFrame(); } #endif #endif From ddeb1421c5683b50cf94d88b3bc5198ec7530aa6 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:00:09 +1300 Subject: [PATCH 2/4] show please wait message on repeater boot --- examples/simple_repeater/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/simple_repeater/main.cpp b/examples/simple_repeater/main.cpp index 4836c533..8ac1e8a7 100644 --- a/examples/simple_repeater/main.cpp +++ b/examples/simple_repeater/main.cpp @@ -616,6 +616,14 @@ void setup() { board.begin(); +#ifdef DISPLAY_CLASS + if(display.begin()){ + display.startFrame(); + display.print("Please wait..."); + display.endFrame(); + } +#endif + if (!radio_init()) { halt(); } fast_rng.begin(radio_get_rng_seed()); @@ -646,7 +654,6 @@ void setup() { the_mesh.begin(fs); #ifdef DISPLAY_CLASS - display.begin(); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); #endif From fb57b4d2d6006c8a077c2e6b3932beeb7634f27e Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:04:06 +1300 Subject: [PATCH 3/4] show please wait message on room server boot --- examples/simple_room_server/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/simple_room_server/main.cpp b/examples/simple_room_server/main.cpp index 34c8ebdf..36938ef6 100644 --- a/examples/simple_room_server/main.cpp +++ b/examples/simple_room_server/main.cpp @@ -846,6 +846,14 @@ void setup() { board.begin(); +#ifdef DISPLAY_CLASS + if(display.begin()){ + display.startFrame(); + display.print("Please wait..."); + display.endFrame(); + } +#endif + if (!radio_init()) { halt(); } fast_rng.begin(radio_get_rng_seed()); @@ -875,7 +883,6 @@ void setup() { the_mesh.begin(fs); #ifdef DISPLAY_CLASS - display.begin(); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); #endif From 6c34844486860296d8ff26713d4bee0c7d3c503f Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:10:12 +1300 Subject: [PATCH 4/4] init display before radio --- examples/companion_radio/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/companion_radio/main.cpp b/examples/companion_radio/main.cpp index 4672e6e6..31c441d5 100644 --- a/examples/companion_radio/main.cpp +++ b/examples/companion_radio/main.cpp @@ -1433,10 +1433,6 @@ void setup() { board.begin(); - if (!radio_init()) { halt(); } - - fast_rng.begin(radio_get_rng_seed()); - #ifdef HAS_UI DisplayDriver* disp = NULL; #ifdef DISPLAY_CLASS @@ -1449,6 +1445,10 @@ void setup() { #endif #endif + if (!radio_init()) { halt(); } + + fast_rng.begin(radio_get_rng_seed()); + #if defined(NRF52_PLATFORM) InternalFS.begin(); the_mesh.begin(InternalFS,