mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +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();
|
new SimRadio();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
router.addInterface(rIf);
|
|
||||||
|
|
||||||
if (!rIf->init())
|
if (!rIf->init())
|
||||||
recordCriticalError(ErrNoRadio);
|
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
|
// 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
|
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