mirror of https://github.com/arendst/Tasmota.git
Fix ESP32 bootloop regression
This commit is contained in:
parent
5b62c5abd3
commit
8693f5b0a8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue