From 4d4a0ae4e3f8e085c253356cc7b27222eab5b4ff Mon Sep 17 00:00:00 2001 From: liamcottle Date: Tue, 1 Apr 2025 16:10:12 +1300 Subject: [PATCH] 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,