Fixed ESP32 version

Fixed Adalight serial Ambilight
This commit is contained in:
cschwinne
2018-10-04 22:38:39 +02:00
parent c2972786f5
commit 43e9743645
3 changed files with 12 additions and 12 deletions

View File

@@ -57,8 +57,12 @@ void wledInit()
}
prepareIds(); //UUID from MAC (for Alexa and MQTT)
if (mqttDeviceTopic[0] == 0) strcpy(mqttDeviceTopic, strcat("wled/", escapedMac.c_str()));
if (mqttDeviceTopic[0] == 0)
{
strcpy(mqttDeviceTopic, "wled/");
strcat(mqttDeviceTopic, escapedMac.c_str());
}
//smartInit, we only init some resources when connected
if (!onlyAP && WiFi.status() == WL_CONNECTED)
{