Attempting to fix disconnect on Adalight (ESP32, #194)

This commit is contained in:
cschwinne
2019-11-30 11:17:37 +01:00
parent e754d21598
commit bbe511dd15
6 changed files with 65 additions and 40 deletions

View File

@@ -142,6 +142,8 @@ void serializeSegment(JsonObject& root, WS2812FX::Segment& seg, byte id)
void serializeState(JsonObject root)
{
if (errorFlag) root["error"] = errorFlag;
root["on"] = (bri > 0);
root["bri"] = briLast;
root["transition"] = transitionDelay/100; //in 100ms