Skip to content

Commit

Permalink
msp: fix vtxtable buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Oct 15, 2023
1 parent 2698617 commit 7a9b067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ static void msp_process_serial_cmd(msp_t *msp, msp_magic_t magic, uint16_t cmd,
}

uint8_t offset = 0;
uint8_t buf[4 + 8 + VTX_CHANNEL_MAX * sizeof(uint16_t)];
uint8_t buf[5 + 8 + VTX_CHANNEL_MAX * sizeof(uint16_t)];

buf[offset++] = band;
buf[offset++] = 8;
Expand Down

0 comments on commit 7a9b067

Please sign in to comment.