diff --git a/include/display.h b/include/display.h index 59357ac..bed9f59 100644 --- a/include/display.h +++ b/include/display.h @@ -91,7 +91,7 @@ namespace Display { } if (currentHour == 8) { Brightness::set(BRIGHTNESS_DAY); - Wifi::tReconnect.enable(); + Wifi::tConnect.enable(); } if (currentHour == 17) { Brightness::set(BRIGHTNESS_NIGHT); diff --git a/platformio.ini b/platformio.ini index addf460..f1f547f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -21,7 +21,7 @@ lib_deps = adafruit/Adafruit Unified Sensor @ ^1.1.4 adafruit/Adafruit BME280 Library@^2.2.4 sparkfun/SparkFun BME280@^2.0.9 - https://git.hodos.ro/libraries/wifi.git@^1.0.1 + https://git.hodos.ro/libraries/wifi.git@^2.0.0 https://git.hodos.ro/libraries/ha-mqtt.git@^1.0.0 build_flags = -D WIFI_ALWAYS_ON=1 -D ADAFRUIT_BME=1