diff --git a/wled00/json.cpp b/wled00/json.cpp index 68d79d87..72cb4be0 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -203,7 +203,11 @@ void deserializeSegment(JsonObject elem, byte it, byte presetId) if (set < 2) stop = start + 1; for (uint16_t i = start; i < stop; i++) { - strip.setPixelColor(i, rgbw[0], rgbw[1], rgbw[2], rgbw[3]); + if (strip.gammaCorrectCol) { + strip.setPixelColor(i, strip.gamma8(rgbw[0]), strip.gamma8(rgbw[1]), strip.gamma8(rgbw[2]), strip.gamma8(rgbw[3])); + } else { + strip.setPixelColor(i, rgbw[0], rgbw[1], rgbw[2], rgbw[3]); + } } if (!set) start++; set = 0;