Merge pull request #165 from liamcottle/dev

Show please wait message on boot
This commit is contained in:
ripplebiz 2025-04-01 14:42:59 +11:00 committed by GitHub
commit accd80db77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 7 deletions

View file

@ -1433,20 +1433,22 @@ void setup() {
board.begin(); board.begin();
if (!radio_init()) { halt(); }
fast_rng.begin(radio_get_rng_seed());
#ifdef HAS_UI #ifdef HAS_UI
DisplayDriver* disp = NULL; DisplayDriver* disp = NULL;
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
if (display.begin()) { if (display.begin()) {
disp = &display; disp = &display;
disp->clear(); disp->startFrame();
disp->print("Please wait...");
disp->endFrame();
} }
#endif #endif
#endif #endif
if (!radio_init()) { halt(); }
fast_rng.begin(radio_get_rng_seed());
#if defined(NRF52_PLATFORM) #if defined(NRF52_PLATFORM)
InternalFS.begin(); InternalFS.begin();
the_mesh.begin(InternalFS, the_mesh.begin(InternalFS,

View file

@ -616,6 +616,14 @@ void setup() {
board.begin(); board.begin();
#ifdef DISPLAY_CLASS
if(display.begin()){
display.startFrame();
display.print("Please wait...");
display.endFrame();
}
#endif
if (!radio_init()) { halt(); } if (!radio_init()) { halt(); }
fast_rng.begin(radio_get_rng_seed()); fast_rng.begin(radio_get_rng_seed());
@ -646,7 +654,6 @@ void setup() {
the_mesh.begin(fs); the_mesh.begin(fs);
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
display.begin();
ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE);
#endif #endif

View file

@ -846,6 +846,14 @@ void setup() {
board.begin(); board.begin();
#ifdef DISPLAY_CLASS
if(display.begin()){
display.startFrame();
display.print("Please wait...");
display.endFrame();
}
#endif
if (!radio_init()) { halt(); } if (!radio_init()) { halt(); }
fast_rng.begin(radio_get_rng_seed()); fast_rng.begin(radio_get_rng_seed());
@ -875,7 +883,6 @@ void setup() {
the_mesh.begin(fs); the_mesh.begin(fs);
#ifdef DISPLAY_CLASS #ifdef DISPLAY_CLASS
display.begin();
ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE); ui_task.begin(the_mesh.getNodeName(), FIRMWARE_BUILD_DATE);
#endif #endif