mirror of https://github.com/arendst/Tasmota.git
Fix compilation error
This commit is contained in:
parent
749093a697
commit
5175653922
|
@ -888,7 +888,11 @@ void HAssAnnounceSensors(void)
|
|||
TasmotaGlobal.tele_period = tele_period_save;
|
||||
size_t sensordata_len = ResponseLength();
|
||||
char sensordata[sensordata_len+2]; // dynamically adjust the size
|
||||
#ifdef MQTT_DATA_STRING
|
||||
strcpy(sensordata, TasmotaGlobal.mqtt_data.c_str()); // we can use strcpy since the buffer has the right size
|
||||
#else
|
||||
strcpy(sensordata, TasmotaGlobal.mqtt_data); // we can use strcpy since the buffer has the right size
|
||||
#eindif
|
||||
|
||||
// ******************* JSON TEST *******************
|
||||
// char sensordata[512];
|
||||
|
|
Loading…
Reference in New Issue