From 2c8df402f84d4a19e5f5766385fe382268ac9837 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Wed, 23 Sep 2026 10:54:28 +0200 Subject: [PATCH] Update CAPABILITIES_VERSION to 12 Signed-off-by: Niel Nielsen --- include/pm3_cmd.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index a27b69940..86c82a17f 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -284,12 +284,16 @@ typedef struct { // emulator memory needs no client change. uint16_t em_size; bool em_allocated : 1; // is a card image resident right now + + // Appended in version 12. + bool compiled_with_bwm : 1; // PM5 built with PLATFORM_EXTRAS=BWM (battery/wireless module) } PACKED capabilities_t; // Bump this whenever a command payload changes shape, so a mismatched client and // firmware refuse to talk instead of misparsing each other. // 10: CMD_HF_MIFARE_EML_MEMSET gained a flags byte // 11: capabilities_t gained em_size / em_allocated -#define CAPABILITIES_VERSION 11 +// 12: capabilities_t gained compiled_with_bwm +#define CAPABILITIES_VERSION 12 // what a pre-v9 device would have used, it could not tell us #define CAPABILITIES_LEGACY_CMD_DATA_SIZE 512 extern capabilities_t g_pm3_capabilities;