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 <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and GitHub committed 2026-09-14 08:38:37 +02:00
1 parent 48d779261a
commit 5624a91f98
1 file changed
+1 -1
+1 -1
View File
@@ -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;