From b7813df3a155e4c2b11da305fa615004fba4481c Mon Sep 17 00:00:00 2001 From: Geoff Sim Date: Mon, 16 Dec 2024 17:47:45 +0000 Subject: [PATCH] Drop MSP_VTX_CONFIG messages with an invalid VTX id --- src/msp_displayport.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msp_displayport.c b/src/msp_displayport.c index a343ffa..e535ed8 100644 --- a/src/msp_displayport.c +++ b/src/msp_displayport.c @@ -1055,6 +1055,11 @@ void parse_vtx_params(uint8_t isMSP_V2) { return; } + // Check for unknown VTX device (probably from a device that is not interested in controlling the VTX directly) + if (msp_rx_buf[0] = 0xff) { + return; + } + fc_pwr_rx = msp_rx_buf[3]; if (fc_pwr_rx == 0) { fc_pwr_rx = POWER_MAX+2; // 0mW