Fix ESP32 bootloop regression

This commit is contained in:
Theo Arends 2021-06-11 10:04:27 +02:00
parent 5b62c5abd3
commit 8693f5b0a8
1 changed files with 2 additions and 2 deletions

View File

@ -1191,8 +1191,8 @@ uint32_t ResponseLength(void) {
void ResponseClear(void) { void ResponseClear(void) {
// Reset string length to zero // Reset string length to zero
#ifdef MQTT_DATA_STRING #ifdef MQTT_DATA_STRING
// TasmotaGlobal.mqtt_data = ""; TasmotaGlobal.mqtt_data = "";
TasmotaGlobal.mqtt_data = (const char*) nullptr; // TasmotaGlobal.mqtt_data = (const char*) nullptr; // Doesn't work on ESP32 as strlen() (in MqttPublishPayload) will fail (for obvious reasons)
#else #else
TasmotaGlobal.mqtt_data[0] = '\0'; TasmotaGlobal.mqtt_data[0] = '\0';
#endif #endif