Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion examples/companion_radio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,20 @@ void setup() {
}
#endif

if (!radio_init()) { halt(); }
if (!radio_init()) {
#ifdef DISPLAY_CLASS
if (disp != NULL) {
disp->startFrame();
disp->clear();
disp->setCursor(0, 0);
disp->print("Radio init failure!");
disp->setCursor(0, 12);
disp->print("Device might be flashed with incompatible firmware.");
disp->endFrame();
}
#endif
halt();
}

fast_rng.begin(radio_get_rng_seed());

Expand Down