File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -376,11 +376,10 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
376
376
if ((zigbee_role_t )Zigbee.getRole () != ZIGBEE_COORDINATOR) {
377
377
leave_params = (esp_zb_zdo_signal_leave_params_t *)esp_zb_app_signal_get_params (p_sg_p);
378
378
log_v (" Signal to leave the network, leave type: %d" , leave_params->leave_type );
379
- if (leave_params->leave_type == ESP_ZB_NWK_LEAVE_TYPE_RESET) { // Leave without rejoin -> Factory reset
379
+ if (leave_params->leave_type == ESP_ZB_NWK_LEAVE_TYPE_RESET) { // Leave without rejoin -> Factory reset
380
380
log_i (" Leave without rejoin, factory reset the device" );
381
381
Zigbee.factoryReset (true );
382
- }
383
- else { // Leave with rejoin -> Rejoin the network, only reboot the device
382
+ } else { // Leave with rejoin -> Rejoin the network, only reboot the device
384
383
log_i (" Leave with rejoin, only reboot the device" );
385
384
ESP.restart ();
386
385
}
You can’t perform that action at this time.
0 commit comments