From 769dc479c21fca3733a7fa2f0d12be61072101db Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Tue, 1 Sep 2026 14:05:33 +0200 Subject: [PATCH] Conditionalize PM3_CMD_DATA_SIZE based on device Signed-off-by: Niel Nielsen --- include/pm3_cmd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index 696f6818b..448f29413 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -25,7 +25,12 @@ // Use it e.g. when using slow links such as BT #define USART_SLOW_LINK -#define PM3_CMD_DATA_SIZE 624 +#if defined(ON_DEVICE) && !defined(PM5) + #define PM3_CMD_DATA_SIZE 624 +#else + #define PM3_CMD_DATA_SIZE 4064 // PM5 firmware and the client +#endif + // OLD frames are pinned at 512 independently of PM3_CMD_DATA_SIZE: // the bootloader only speaks OLD #define PM3_CMD_DATA_SIZE_OLD 512