mirror of https://github.com/arendst/Tasmota.git
Merge pull request #9538 from s-hadinger/zigbee_robustness
Improve robustness
This commit is contained in:
commit
ccf3cd02c5
|
@ -814,7 +814,8 @@ void EZ_UpdateConfig(uint8_t zb_channel, uint16_t zb_pan_id, uint64_t zb_ext_pan
|
|||
|
||||
static const Zigbee_Instruction zb_prog[] PROGMEM = {
|
||||
ZI_LABEL(0)
|
||||
ZI_NOOP()
|
||||
ZI_CALL(&EZ_Reset_Device, 0) // immediately drive reset low
|
||||
ZI_LOG(LOG_LEVEL_INFO, kResettingDevice) // Log Debug: resetting EZSP device
|
||||
// ZI_CALL(EZ_Set_ResetConfig, 0) // for the firt pass, don't do a reset_config
|
||||
ZI_LABEL(ZIGBEE_LABEL_RESTART)
|
||||
ZI_ON_ERROR_GOTO(ZIGBEE_LABEL_ABORT)
|
||||
|
|
|
@ -672,6 +672,7 @@ int32_t ZigbeeProcessInputRaw(class SBuffer &buf) {
|
|||
// ERROR
|
||||
EZ_ERROR(buf.get8(2));
|
||||
zigbee.active = false; // stop all zigbee activities
|
||||
restart_flag = 2; // there is nothing more we can do except restart
|
||||
} else {
|
||||
|
||||
// Unknown
|
||||
|
|
Loading…
Reference in New Issue