mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 10:50:40 +00:00
Only add interfaces to the router if they can be initied
This commit is contained in:
parent
bae73a9526
commit
5d1614989e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user