From 5b6de2ebb8a4d7a65f6c649b2913c500ccac768a Mon Sep 17 00:00:00 2001 From: Paul Kendall Date: Thu, 16 Mar 2023 18:49:11 +1300 Subject: [PATCH] Fix for PR #2062 (#2115) --- src/src/rx_main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/src/rx_main.cpp b/src/src/rx_main.cpp index ba32f3db..598138e7 100644 --- a/src/src/rx_main.cpp +++ b/src/src/rx_main.cpp @@ -1037,6 +1037,7 @@ void MspReceiveComplete() if (MspData[7] == MSP_SET_RX_CONFIG && MspData[8] == MSP_ELRS_MODEL_ID) { UpdateModelMatch(MspData[9]); + break; } else if (OPT_HAS_VTX_SPI && MspData[7] == MSP_SET_VTX_CONFIG) { @@ -1047,9 +1048,10 @@ void MspReceiveComplete() vtxSPIPitmode = MspData[11]; } devicesTriggerEvent(); + break; } - break; - case CRSF_FRAMETYPE_PARAMETER_SETTINGS_ENTRY: + // FALLTHROUGH + default: if ((receivedHeader->dest_addr == CRSF_ADDRESS_BROADCAST || receivedHeader->dest_addr == CRSF_ADDRESS_CRSF_RECEIVER)) { crsf.ParameterUpdateData[0] = MspData[CRSF_TELEMETRY_TYPE_INDEX]; -- 2.11.4.GIT