diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 08a5f04f9a..6e26b22200 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -520,11 +520,11 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { CJSON(gammaCorrectVal, light["gc"]["val"]); // default 2.2 float light_gc_bri = light["gc"]["bri"] | 1.0f; // default to 1.0 (false) float light_gc_col = light["gc"]["col"] | gammaCorrectVal; // default to gammaCorrectVal (true) - if (light_gc_bri > 1.0f) gammaCorrectBri = true; - else gammaCorrectBri = false; - if (light_gc_col > 1.0f) gammaCorrectCol = true; - else gammaCorrectCol = false; - if (gammaCorrectVal <= 1.0f || gammaCorrectVal > 3) { + if (light_gc_bri != 1.0f) gammaCorrectBri = true; + else gammaCorrectBri = false; + if (light_gc_col != 1.0f) gammaCorrectCol = true; + else gammaCorrectCol = false; + if (gammaCorrectVal < 0.1f || gammaCorrectVal > 3) { gammaCorrectVal = 1.0f; // no gamma correction gammaCorrectBri = false; gammaCorrectCol = false; diff --git a/wled00/data/settings_leds.htm b/wled00/data/settings_leds.htm index da2867957b..469617f148 100644 --- a/wled00/data/settings_leds.htm +++ b/wled00/data/settings_leds.htm @@ -958,7 +958,7 @@