Indentations and a few optimisations

Restore addPixelColor() behaviour.
This commit is contained in:
Blaz Kristan
2024-09-23 18:03:17 +02:00
parent 0a5400263b
commit 33cf82a982
6 changed files with 69 additions and 77 deletions

View File

@@ -437,9 +437,9 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
if (light_gc_col > 1.0f) gammaCorrectCol = true;
else gammaCorrectCol = false;
if (gammaCorrectVal <= 1.0f || gammaCorrectVal > 3) {
gammaCorrectVal = 1.0f; // no gamma correction
gammaCorrectBri = false;
gammaCorrectCol = false;
gammaCorrectVal = 1.0f; // no gamma correction
gammaCorrectBri = false;
gammaCorrectCol = false;
}
NeoGammaWLEDMethod::calcGammaTable(gammaCorrectVal); // fill look-up table