From c0dd8583db7ff5bb7f3c3b4f67b96ad03a350559 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 14 Oct 2020 08:56:18 +0200 Subject: [PATCH] Improve robustness --- tasmota/xdrv_23_zigbee_7_statemachine.ino | 3 ++- tasmota/xdrv_23_zigbee_9_serial.ino | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasmota/xdrv_23_zigbee_7_statemachine.ino b/tasmota/xdrv_23_zigbee_7_statemachine.ino index dd4bc1725..1af031e39 100644 --- a/tasmota/xdrv_23_zigbee_7_statemachine.ino +++ b/tasmota/xdrv_23_zigbee_7_statemachine.ino @@ -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) diff --git a/tasmota/xdrv_23_zigbee_9_serial.ino b/tasmota/xdrv_23_zigbee_9_serial.ino index 9dd683b9a..479f1b2f2 100644 --- a/tasmota/xdrv_23_zigbee_9_serial.ino +++ b/tasmota/xdrv_23_zigbee_9_serial.ino @@ -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