Skip to content

Commit a29b006

Browse files
committed
fix(zigbee): Replace assert with error log to solve immediate crash
1 parent 6015fd7 commit a29b006

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/Zigbee/src/ZigbeeCore.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ void ZigbeeCore::closeNetwork() {
237237
}
238238

239239
static void bdb_start_top_level_commissioning_cb(uint8_t mode_mask) {
240-
ESP_ERROR_CHECK(esp_zb_bdb_start_top_level_commissioning(mode_mask));
240+
if(esp_zb_bdb_start_top_level_commissioning(mode_mask) != ESP_OK){
241+
log_e("Failed to start Zigbee commissioning");
242+
}
241243
}
242244

243245
void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {

0 commit comments

Comments
 (0)