Browse Source
Merge pull request #165 from liamcottle/dev
Show please wait message on boot
pull/172/head
ripplebiz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
23 additions and
7 deletions
-
examples/companion_radio/main.cpp
-
examples/simple_repeater/main.cpp
-
examples/simple_room_server/main.cpp
|
|
|
@ -1433,20 +1433,22 @@ void setup() { |
|
|
|
|
|
|
|
board.begin(); |
|
|
|
|
|
|
|
if (!radio_init()) { halt(); } |
|
|
|
|
|
|
|
fast_rng.begin(radio_get_rng_seed()); |
|
|
|
|
|
|
|
#ifdef HAS_UI |
|
|
|
DisplayDriver* disp = NULL; |
|
|
|
#ifdef DISPLAY_CLASS |
|
|
|
if (display.begin()) { |
|
|
|
disp = &display; |
|
|
|
disp->clear(); |
|
|
|
disp->startFrame(); |
|
|
|
disp->print("Please wait..."); |
|
|
|
disp->endFrame(); |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
if (!radio_init()) { halt(); } |
|
|
|
|
|
|
|
fast_rng.begin(radio_get_rng_seed()); |
|
|
|
|
|
|
|
#if defined(NRF52_PLATFORM) |
|
|
|
InternalFS.begin(); |
|
|
|
the_mesh.begin(InternalFS, |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|
|