mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-07 13:11:38 +02:00
Only call loop() functions of radio modules that are enabled and set up
This commit is contained in:
parent
1c12f4c141
commit
41e000f01a
1 changed files with 4 additions and 2 deletions
|
@ -105,8 +105,10 @@ void app::setup() {
|
|||
void app::loop(void) {
|
||||
ah::Scheduler::loop();
|
||||
|
||||
if(mConfig->nrf.enabled)
|
||||
mNrfRadio.loop();
|
||||
#if defined(ESP32)
|
||||
if(mConfig->cmt.enabled)
|
||||
mCmtRadio.loop();
|
||||
#endif
|
||||
mCommunication.loop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue