From 5624a91f9836403b34934a64b5f3b7e4aaf4f6e1 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Mon, 14 Sep 2026 08:38:37 +0200 Subject: [PATCH] Decrease PM3_FPC_MAX_DATA from 4096 to 2048 Reduced maximum data size for FPC communication to prevent buffer overrun. Signed-off-by: Niel Nielsen --- include/pm3_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index 9fafe84f3..3c11866f1 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -38,7 +38,7 @@ // Over the BWM/FPC link the forward buffers (AT32 DMA ring, ESP UART RX) are // small, so a full PM3_CMD_DATA_SIZE frame overruns them. Cap the payload the // device advertises and sends when replying via FPC. USB is unaffected. -#define PM3_FPC_MAX_DATA 4096 +#define PM3_FPC_MAX_DATA 2048 typedef struct { uint64_t cmd;