Fix WebUI currency converter, reorganize some code

This commit is contained in:
Djuri 2024-09-18 02:00:10 +02:00
parent 5dd47c2275
commit ff50acf913
14 changed files with 228 additions and 195 deletions

View file

@ -51,7 +51,7 @@ extern "C" void app_main()
if (hasLightLevel()) {
if (preferences.getUInt("luxLightToggle", DEFAULT_LUX_LIGHT_TOGGLE) != 0)
{
if (hasLightLevel() && getLightLevel() == 0)
if (hasLightLevel() && getLightLevel() <= 2)
{
if (frontlightIsOn()) {
frontlightFadeOutAll();