From 7a9b067aad3a4c2e1095f4dd1cc32e330afa21a4 Mon Sep 17 00:00:00 2001 From: bkleiner Date: Sun, 15 Oct 2023 22:24:13 +0200 Subject: [PATCH] msp: fix vtxtable buffer size --- src/io/msp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/msp.c b/src/io/msp.c index 07e81af02..88955f6fe 100644 --- a/src/io/msp.c +++ b/src/io/msp.c @@ -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;