Remove MeshRadio wrapper class - we don't need it anymore.

This commit is contained in:
geeksville
2020-05-09 16:32:26 -07:00
parent b73dd5b23b
commit e6875d559c
7 changed files with 105 additions and 167 deletions

View File

@@ -104,8 +104,6 @@ const char *getDeviceName()
return name;
}
static MeshRadio *radio = NULL;
static uint32_t ledBlinker()
{
static bool ledOn;
@@ -231,10 +229,10 @@ void setup()
#else
new SimRadio();
#endif
radio = new MeshRadio(rIf);
router.addInterface(&radio->radioIf);
if (radio && !radio->init())
router.addInterface(rIf);
if (!rIf->init())
recordCriticalError(ErrNoRadio);
// This must be _after_ service.init because we need our preferences loaded from flash to have proper timeout values