From f2aad42be456945e00ac64bb8ca1d867d4be465a Mon Sep 17 00:00:00 2001 From: lumapu Date: Tue, 25 Apr 2023 20:51:26 +0200 Subject: [PATCH] fix compile error --- src/app.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app.cpp b/src/app.cpp index 8834ea25..b33db83b 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -59,7 +59,8 @@ void app::setup() { mMiPayload.setup(this, &mSys, &mNrfRadio, &mStat, mConfig->nrf.maxRetransPerPyld, &mTimestamp); mMiPayload.enableSerialDebug(mConfig->serial.debug); - mMiPayload.addPayloadListener(std::bind(&app::payloadEventListener, this, std::placeholders::_1)); + mMiPayload.addPayloadListener(std::bind(&app::payloadEventListener, this, std::placeholders::_1)); + } #if defined(ESP32) mHmsPayload.setup(this, &mSys, &mCmtRadio, &mStat, 5, &mTimestamp); @@ -72,7 +73,7 @@ void app::setup() { DBGPRINTLN(String(ESP.getMaxFreeBlockSize()));*/ if(mConfig->nrf.enabled) { - if (!mSys.Radio.isChipConnected()) + if (!mNrfRadio.isChipConnected()) DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring")); } @@ -482,6 +483,6 @@ void app::updateLed(void) { digitalWrite(mConfig->led.led1, led_on); } else { digitalWrite(mConfig->led.led1, led_off); -} + } } -} +} \ No newline at end of file