mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 18:47:40 +00:00
create MeshRadio even on NRF52 (though it is currently using a Sim interface)
This commit is contained in:
parent
e94227cddd
commit
b77c068881
@ -283,11 +283,9 @@ void setup()
|
|||||||
|
|
||||||
service.init();
|
service.init();
|
||||||
|
|
||||||
#ifndef NO_ESP32
|
|
||||||
// MUST BE AFTER service.init, so we have our radio config settings (from nodedb init)
|
// MUST BE AFTER service.init, so we have our radio config settings (from nodedb init)
|
||||||
radio = new MeshRadio();
|
radio = new MeshRadio();
|
||||||
router.addInterface(&radio->radioIf);
|
router.addInterface(&radio->radioIf);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (radio && !radio->init())
|
if (radio && !radio->init())
|
||||||
recordCriticalError(ErrNoRadio);
|
recordCriticalError(ErrNoRadio);
|
||||||
|
Loading…
Reference in New Issue
Block a user