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,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…
Add table
Add a link
Reference in a new issue