Fix analog write range

This commit is contained in:
cschwinne
2019-12-30 17:34:15 +01:00
parent 92b532ce9a
commit 6e35b5ba8b
4 changed files with 20 additions and 21 deletions

View File

@@ -243,7 +243,7 @@ void serializeInfo(JsonObject root)
leds_pin.add(LEDPIN);
leds["pwr"] = strip.currentMilliamps;
leds["maxpwr"] = strip.ablMilliampsMax;
leds["maxpwr"] = (strip.currentMilliamps)? strip.ablMilliampsMax : 0;
leds["maxseg"] = strip.getMaxSegments();
leds["seglock"] = false; //will be used in the future to prevent modifications to segment config