From d8537a1a6c5d664ff6278f51de32fe1e8110818a Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Mon, 31 Aug 2026 12:00:04 +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 589c3d75e..a12b01177 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 +#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