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;