From 8693f5b0a8839d1ea391791594109a768dd2c220 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 11 Jun 2021 10:04:27 +0200 Subject: [PATCH] Fix ESP32 bootloop regression --- tasmota/support.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 566d0ea95..76b42f38a 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1191,8 +1191,8 @@ uint32_t ResponseLength(void) { void ResponseClear(void) { // Reset string length to zero #ifdef MQTT_DATA_STRING -// TasmotaGlobal.mqtt_data = ""; - TasmotaGlobal.mqtt_data = (const char*) nullptr; + TasmotaGlobal.mqtt_data = ""; +// TasmotaGlobal.mqtt_data = (const char*) nullptr; // Doesn't work on ESP32 as strlen() (in MqttPublishPayload) will fail (for obvious reasons) #else TasmotaGlobal.mqtt_data[0] = '\0'; #endif