Skip to content

Commit

Permalink
msp: add vtx settings magic if != vtx_device
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Dec 7, 2022
1 parent 0e7cc22 commit a9c449c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd,

case MSP_SET_VTX_CONFIG: {
vtx_settings_t *settings = msp->device == MSP_DEVICE_VTX ? &msp_vtx_settings : &vtx_settings;
if (msp->device != MSP_DEVICE_VTX) {
settings->magic = VTX_SETTINGS_MAGIC;
}

uint16_t remaining = size;

Expand Down

0 comments on commit a9c449c

Please sign in to comment.