Fix JSON message error (#5521)

Fix JSON message error regression  (#5521)
This commit is contained in:
Theo Arends 2019-03-25 10:02:12 +01:00
parent 10d32acccc
commit a7a07c5b96

View File

@ -760,7 +760,7 @@ void LightState(uint8_t append)
for (uint8_t i = 0; i < light_subtype; i++) {
ResponseAppend_P(PSTR("%s%d" ), (i > 0 ? "," : ""), light_current_color[i] * 100 / 255);
}
ResponseAppend_P(PSTR("%s]"));
ResponseAppend_P(PSTR("]"));
}
if ((LST_COLDWARM == light_subtype) || (LST_RGBWC == light_subtype)) {
ResponseAppend_P(PSTR(",\"" D_CMND_COLORTEMPERATURE "\":%d"), LightGetColorTemp());