Skip to content

Commit b000abb

Browse files
ci(pre-commit): Apply automatic fixes
1 parent af9b642 commit b000abb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/Zigbee/src/ZigbeeCore.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,10 @@ void esp_zb_app_signal_handler(esp_zb_app_signal_t *signal_struct) {
376376
if ((zigbee_role_t)Zigbee.getRole() != ZIGBEE_COORDINATOR) {
377377
leave_params = (esp_zb_zdo_signal_leave_params_t *)esp_zb_app_signal_get_params(p_sg_p);
378378
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
380380
log_i("Leave without rejoin, factory reset the device");
381381
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
384383
log_i("Leave with rejoin, only reboot the device");
385384
ESP.restart();
386385
}

0 commit comments

Comments
 (0)