Browse Source

Only call loop() functions of radio modules that are enabled and set up

pull/1264/head
you69man 1 year ago
parent
commit
41e000f01a
  1. 6
      src/app.cpp

6
src/app.cpp

@ -105,9 +105,11 @@ void app::setup() {
void app::loop(void) { void app::loop(void) {
ah::Scheduler::loop(); ah::Scheduler::loop();
mNrfRadio.loop(); if(mConfig->nrf.enabled)
mNrfRadio.loop();
#if defined(ESP32) #if defined(ESP32)
mCmtRadio.loop(); if(mConfig->cmt.enabled)
mCmtRadio.loop();
#endif #endif
mCommunication.loop(); mCommunication.loop();

Loading…
Cancel
Save