File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ bool ZigbeeCore::begin(esp_zb_cfg_t *role_cfg, bool erase_nvs) {
48
48
}
49
49
_role = (zigbee_role_t )role_cfg->esp_zb_role ;
50
50
if (xSemaphoreTake (lock, _begin_timeout) != pdTRUE) {
51
- log_e (" ZigbeeCore begin timeout" );
51
+ log_e (" ZigbeeCore begin failed or timeout" );
52
+ if (_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
53
+ resetChannelMask ();
54
+ }
52
55
}
53
56
return started ();
54
57
}
@@ -81,7 +84,7 @@ bool ZigbeeCore::begin(zigbee_role_t role, bool erase_nvs) {
81
84
}
82
85
if (!status || xSemaphoreTake (lock, _begin_timeout) != pdTRUE) {
83
86
log_e (" ZigbeeCore begin failed or timeout" );
84
- if (role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
87
+ if (_role != ZIGBEE_COORDINATOR) { // Only End Device and Router can rejoin
85
88
resetChannelMask ();
86
89
}
87
90
}
You can’t perform that action at this time.
0 commit comments