define to make knownSsid compatible with esp32

This commit is contained in:
Bobby Walker 2019-12-21 18:53:37 -06:00
parent 3dcda08735
commit 6b8e9a63f3

View File

@ -69,7 +69,11 @@ void userLoop() {
needRedraw = false; needRedraw = false;
// Update last known values. // Update last known values.
#ifdef(ESP8266)
knownSsid = apActive ? WiFi.softAPSSID() : WiFi.SSID(); knownSsid = apActive ? WiFi.softAPSSID() : WiFi.SSID();
#else
knownSsid = WiFi.SSID();
#endif
knownIp = apActive ? IPAddress(4, 3, 2, 1) : WiFi.localIP(); knownIp = apActive ? IPAddress(4, 3, 2, 1) : WiFi.localIP();
knownBrightness = bri; knownBrightness = bri;
knownMode = strip.getMode(); knownMode = strip.getMode();