Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c')
-rw-r--r--Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c
index 270be73fa..0210b0458 100644
--- a/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c
+++ b/Projects/P-NUCLEO-WB55.Nucleo/Applications/Zigbee/Zigbee_Find_Bind_OnOff_Router1/STM32_WPAN/App/app_zigbee.c
@@ -285,9 +285,10 @@ static void APP_ZIGBEE_NwkJoin(void)
APP_DBG("No bindings, ensure that the coordinator was on identify mode or that there are bindable clusters.");
memset(&req, 0, sizeof(struct ZbNlmeLeaveReqT));
- ZbNlmeLeaveReq(zigbee_app_info.zb,&req, NULL, NULL);
+ if (ZbNlmeLeaveReq(zigbee_app_info.zb,&req, NULL, NULL) != ZB_STATUS_SUCCESS)
+ APP_DBG("ZbNlmeLeaveReq returning an error");
APP_DBG("Attempting again after a short delay (%d ms)", APP_ZIGBEE_STARTUP_FAIL_DELAY);
- zigbee_app_info.join_status = ZB_BDB_COMMISS_STATUS_FORMATION_FAILURE;
+ zigbee_app_info.join_status = ZB_NWK_STATUS_STARTUP_FAILURE;
zigbee_app_info.join_delay = HAL_GetTick() + APP_ZIGBEE_STARTUP_FAIL_DELAY;
}
}
@@ -774,4 +775,6 @@ static int numOfBindings()
/* USER CODE END FD_LOCAL_FUNCTIONS */
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ \ No newline at end of file
+/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+
+