From d7e6f6114ad5819b0c031b1a9981625810dea637 Mon Sep 17 00:00:00 2001 From: Theo Arends Date: Tue, 24 Jul 2018 18:40:13 +0200 Subject: [PATCH] Fix possible WDT Fix possible WDT due to long MQTT publish handling (#3313) --- sonoff/xdrv_01_mqtt.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonoff/xdrv_01_mqtt.ino b/sonoff/xdrv_01_mqtt.ino index 4bfff0724..8afcf672b 100644 --- a/sonoff/xdrv_01_mqtt.ino +++ b/sonoff/xdrv_01_mqtt.ino @@ -231,6 +231,8 @@ void MqttPublishDirect(const char* topic, boolean retained) if (Settings.ledstate &0x04) { blinks++; } + + yield(); // #3313 } void MqttPublish(const char* topic, boolean retained)