Skip to content

Commit

Permalink
msp: handle msp-vtx in passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 22, 2023
1 parent 3364696 commit daa0969
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/io/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd,
msp_send_reply(msp, magic, cmd, data, 1);

if (arg == serial_vtx.config.port) {
if (vtx_settings.protocol == VTX_PROTOCOL_TRAMP) {
usb_serial_passthrough(arg, 9600, 1, true);
} else {
if (vtx_settings.protocol == VTX_PROTOCOL_SMART_AUDIO) {
usb_serial_passthrough(arg, 4800, 2, true);
} else {
// MSP & Tramp both use 9600 baud
usb_serial_passthrough(arg, 9600, 1, true);
}
}

break;
}

Expand Down

0 comments on commit daa0969

Please sign in to comment.