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;