Fix VCP reply buffer alignment

This commit is contained in:
Armel FAUVEAU committed 2026-08-18 18:02:25 +02:00
1 parent c8b65bb9d8
commit 4cc5d11142
1 file changed
+2 -1
+2 -1
View File
@@ -197,7 +197,8 @@ typedef union
#ifdef ENABLE_USB
static void SendReply_VCP(void *pReply, uint16_t Size)
{
static uint8_t VCP_ReplyBuf[MAX_REPLY_SIZE + sizeof(Header_t) + sizeof(Footer_t)];
static uint8_t VCP_ReplyBuf[MAX_REPLY_SIZE + sizeof(Header_t) + sizeof(Footer_t)]
__attribute__((aligned(4)));
// !!
if (Size > MAX_REPLY_SIZE)