From ea9ab4601a3dbdb341fd5b05a95b7f43e95302b7 Mon Sep 17 00:00:00 2001 From: Stefan Thieme Date: Wed, 1 Jun 2022 23:48:44 +0200 Subject: [PATCH] add channel 2440 to RX_CHANNELS 5 in hmRadio.h --- tools/esp8266/hmRadio.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/esp8266/hmRadio.h b/tools/esp8266/hmRadio.h index a539ee4f..808f72f7 100644 --- a/tools/esp8266/hmRadio.h +++ b/tools/esp8266/hmRadio.h @@ -13,12 +13,12 @@ #define DTU_RADIO_ID ((uint64_t)0x1234567801ULL) #define DUMMY_RADIO_ID ((uint64_t)0xDEADBEEF01ULL) +#define RX_CHANNELS 5 #define RX_LOOP_CNT 400 const char* const rf24AmpPower[] = {"MIN", "LOW", "HIGH", "MAX"}; - //----------------------------------------------------------------------------- // MACROS //----------------------------------------------------------------------------- @@ -48,13 +48,17 @@ template = 4) + if(++mRxChIdx >= RX_CHANNELS) mRxChIdx = 0; return mRxChLst[mRxChIdx]; } @@ -272,7 +276,7 @@ class HmRadio { uint8_t mTxChLst[1]; //uint8_t mTxChIdx; - uint8_t mRxChLst[4]; + uint8_t mRxChLst[RX_CHANNELS]; uint8_t mRxChIdx; uint16_t mRxLoopCnt;