From 12cc948021cd032f1332e083870b261ad5ca08ce Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 21 Sep 2023 11:11:04 +0200 Subject: [PATCH] Remove the check of the Receiver ID. Or we will never accept newer receivers! --- radio/src/telemetry/frsky_pxx2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/telemetry/frsky_pxx2.cpp b/radio/src/telemetry/frsky_pxx2.cpp index dd8d63106..cfa075156 100644 --- a/radio/src/telemetry/frsky_pxx2.cpp +++ b/radio/src/telemetry/frsky_pxx2.cpp @@ -41,7 +41,7 @@ void processGetHardwareInfoFrame(uint8_t module, const uint8_t * frame) POPUP_WARNING(STR_MODULE_UPGRADE_ALERT); } } - else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2ReceiversNames)) { + else if (index < PXX2_MAX_RECEIVERS_PER_MODULE) { memcpy(&destination->receivers[index].information, &frame[4], length); destination->receivers[index].timestamp = get_tmr10ms(); if (destination->receivers[index].information.capabilities & ~((1 << RECEIVER_CAPABILITY_COUNT) - 1))