Hello Nordic team,
Whilst porting our product from nRF Connect 2.4.1 to 2.9.1 we encountered the following problem. When compiling with ZIGBEE_FACTORY_RESET=n we get
Fullscreen
1
2
nrf_projects/nrf/subsys/zigbee/lib/zigbee_app_utils/zigbee_app_utils.c: In function 'zigbee_default_signal_handler':
nrf_projects/nrf/subsys/zigbee/lib/zigbee_app_utils/zigbee_app_utils.c:451:37: error: 'factory_reset_context' undeclared
Seems that the structure definition is excluded from the build but is is used anyway in the code so it does not compile.
Fullscreen
1
2
3
4
5
6
7
8
9
10
#if defined CONFIG_ZIGBEE_FACTORY_RESET
/* Factory Reset related variables. */
struct factory_reset_context_t {
uint32_t button;
bool reset_done;
bool pibcache_pan_id_needs_reset;
struct k_timer timer;
};
static struct factory_reset_context_t factory_reset_context;
#endif /* CONFIG_ZIGBEE_FACTORY_RESET */
Zephyr SDK 0.17.0,
West 1.2.0