From 5d1614989ed05fdc959bab1df159e9329fac4c49 Mon Sep 17 00:00:00 2001 From: geeksville Date: Mon, 25 May 2020 15:47:45 -0700 Subject: [PATCH] Only add interfaces to the router if they can be initied --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3103335b..dc6fe7ad 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -234,10 +234,10 @@ void setup() new SimRadio(); #endif - router.addInterface(rIf); - if (!rIf->init()) recordCriticalError(ErrNoRadio); + else + router.addInterface(rIf); // This must be _after_ service.init because we need our preferences loaded from flash to have proper timeout values PowerFSM_setup(); // we will transition to ON in a couple of seconds, FIXME, only do this for cold boots, not waking from SDS