Skip to content

Commit 6343c56

Browse files
committed
fix: patch GetCapabilities response instead of changing version defines
1 parent 0bfebbc commit 6343c56

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cmd_get_capabilities.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#define SERIALAPI_MANUFACTURER_PRODUCT_ID2 (uint8_t) (ZAF_CONFIG_PRODUCT_ID & 0x00FF) /* LSB */
2626

2727
static uint8_t SERIALAPI_CAPABILITIES[CAPABILITIES_SIZE] = {
28-
APP_VERSION,
29-
APP_REVISION,
28+
USER_APP_VERSION,
29+
USER_APP_REVISION,
3030
SERIALAPI_MANUFACTURER_ID1,
3131
SERIALAPI_MANUFACTURER_ID2,
3232
SERIALAPI_MANUFACTURER_PRODUCT_TYPE1,

config/zw_version_config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
// <q USE_USER_APP_VERSION> false: Use Default Z-Wave version numbering, true: Use Application Version Configuration numbering
2323
// <i> Default: 0
24-
#define USE_USER_APP_VERSION 1
24+
// WARN: DO NOT set to 1! This breaks the built-in NVM migration mechanism etc.
25+
// Instead, refer to USER_APP_VERSION and USER_APP_REVISION in SERIALAPI_CAPABILITIES
26+
#define USE_USER_APP_VERSION 0
2527

2628
// </h>
2729
// <h> Application Version Configuration

0 commit comments

Comments
 (0)