Skip to content

Commit

Permalink
Drop MSP_VTX_CONFIG messages with an invalid VTX id
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffsim committed Dec 16, 2024
1 parent 8f7da85 commit b7813df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/msp_displayport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7813df

Please sign in to comment.