Skip to content

Commit

Permalink
msp-vtx: fix direction
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 22, 2023
1 parent 53287ae commit 2e1c9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/driver/serial_vtx_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static void serial_msp_send(msp_magic_t magic, uint8_t direction, uint16_t cmd,

vtx_frame[0] = '$';
vtx_frame[1] = MSP2_MAGIC;
vtx_frame[2] = '>';
vtx_frame[2] = direction;
vtx_frame[3] = 0; // flag
vtx_frame[4] = (cmd >> 0) & 0xFF;
vtx_frame[5] = (cmd >> 8) & 0xFF;
Expand All @@ -39,7 +39,7 @@ static void serial_msp_send(msp_magic_t magic, uint8_t direction, uint16_t cmd,

vtx_frame[0] = '$';
vtx_frame[1] = MSP1_MAGIC;
vtx_frame[2] = '>';
vtx_frame[2] = direction;
vtx_frame[3] = len;
vtx_frame[4] = cmd;

Expand Down

0 comments on commit 2e1c9ba

Please sign in to comment.