define to make knownSsid compatible with esp32
This commit is contained in:
parent
3dcda08735
commit
6b8e9a63f3
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user