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;
// Update last known values.
#ifdef(ESP8266)
knownSsid = apActive ? WiFi.softAPSSID() : WiFi.SSID();
#else
knownSsid = WiFi.SSID();
#endif
knownIp = apActive ? IPAddress(4, 3, 2, 1) : WiFi.localIP();
knownBrightness = bri;
knownMode = strip.getMode();