Added new auto white modes (related to #573 )

This commit is contained in:
cschwinne
2020-02-20 00:45:09 +01:00
parent 05f5aaaeca
commit 65a32b4166
13 changed files with 2526 additions and 2494 deletions

View File

@@ -242,7 +242,7 @@ void serializeInfo(JsonObject root)
JsonObject leds = root.createNestedObject("leds");
leds["count"] = ledCount;
leds["rgbw"] = useRGBW;
leds["wv"] = useRGBW && !autoRGBtoRGBW; //should a white channel slider be displayed?
leds["wv"] = useRGBW && (strip.rgbwMode == RGBW_MODE_MANUAL_ONLY || strip.rgbwMode == RGBW_MODE_DUAL); //should a white channel slider be displayed?
JsonArray leds_pin = leds.createNestedArray("pin");
leds_pin.add(LEDPIN);