diff --git a/wled00/json.cpp b/wled00/json.cpp index 7181db33..7fd76888 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -654,7 +654,7 @@ void setPaletteColors(JsonArray json, CRGBPalette16 palette) for (int i = 0; i < 16; i++) { JsonArray colors = json.createNestedArray(); CRGB color = palette[i]; - colors.add((((float)i / (float)16) * 255)); + colors.add(i<<4); colors.add(color.red); colors.add(color.green); colors.add(color.blue); diff --git a/wled00/led.cpp b/wled00/led.cpp index 311ec75e..17436ad9 100644 --- a/wled00/led.cpp +++ b/wled00/led.cpp @@ -168,11 +168,9 @@ void colorUpdated(int callMode) void updateInterfaces(uint8_t callMode) { + lastInterfaceUpdate = millis(); sendDataWs(); - if (callMode == CALL_MODE_WS_SEND) { - lastInterfaceUpdate = millis(); - return; - } + if (callMode == CALL_MODE_WS_SEND) return; #ifndef WLED_DISABLE_ALEXA if (espalexaDevice != nullptr && callMode != CALL_MODE_ALEXA) { @@ -185,7 +183,6 @@ void updateInterfaces(uint8_t callMode) callMode != CALL_MODE_NO_NOTIFY) updateBlynk(); #endif doPublishMqtt = true; - lastInterfaceUpdate = millis(); }