Fix compile for ST7789 display usermod.

This commit is contained in:
Blaz Kristan 2022-03-13 09:30:51 +01:00
parent 167d29c39f
commit 31981b9080

View File

@ -197,10 +197,10 @@ class St7789DisplayUsermod : public Usermod {
if ((((apActive) ? String(apSSID) : WiFi.SSID()) != knownSsid) || if ((((apActive) ? String(apSSID) : WiFi.SSID()) != knownSsid) ||
(knownIp != (apActive ? IPAddress(4, 3, 2, 1) : Network.localIP())) || (knownIp != (apActive ? IPAddress(4, 3, 2, 1) : Network.localIP())) ||
(knownBrightness != bri) || (knownBrightness != bri) ||
(knownEffectSpeed != effectSpeed) || (knownEffectSpeed != strip.getMainSegment().speed) ||
(knownEffectIntensity != effectIntensity) || (knownEffectIntensity != strip.getMainSegment().intensity) ||
(knownMode != strip.getMode()) || (knownMode != strip.getMainSegment().mode) ||
(knownPalette != strip.getSegment(0).palette)) (knownPalette != strip.getMainSegment().palette))
{ {
needRedraw = true; needRedraw = true;
} }
@ -226,10 +226,10 @@ class St7789DisplayUsermod : public Usermod {
#endif #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.getMainSegment().mode;
knownPalette = strip.getSegment(0).palette; knownPalette = strip.getMainSegment().palette;
knownEffectSpeed = effectSpeed; knownEffectSpeed = strip.getMainSegment().speed;
knownEffectIntensity = effectIntensity; knownEffectIntensity = strip.getMainSegment().intensity;
tft.fillScreen(TFT_BLACK); tft.fillScreen(TFT_BLACK);