We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e9dc18 commit d1d9decCopy full SHA for d1d9dec
1 file changed
wled00/cfg.cpp
@@ -507,8 +507,8 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
507
CJSON(strip.autoSegments, light[F("aseg")]);
508
509
CJSON(gammaCorrectVal, light["gc"]["val"]); // default 2.2
510
- float light_gc_bri = light["gc"]["bri"];
511
- float light_gc_col = light["gc"]["col"];
+ 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)
512
if (light_gc_bri > 1.0f) gammaCorrectBri = true;
513
else gammaCorrectBri = false;
514
if (light_gc_col > 1.0f) gammaCorrectCol = true;
0 commit comments