Skip to content

Commit

Permalink
Possible fix for:
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek authored and softhack007 committed Apr 9, 2024
1 parent bf6932e commit 0ddfb25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wled00/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ void updateInterfaces(uint8_t callMode)
{
sendDataWs();
lastInterfaceUpdate = millis();
interfaceUpdateCallMode = 0; //disable

if (callMode == CALL_MODE_WS_SEND) return;

#ifndef WLED_DISABLE_ALEXA
Expand All @@ -172,7 +174,6 @@ void updateInterfaces(uint8_t callMode)
}
#endif
doPublishMqtt = true;
interfaceUpdateCallMode = 0; //disable
}


Expand Down
2 changes: 2 additions & 0 deletions wled00/wled_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ void initServer()

if (verboseResponse) {
if (!isConfig) {
lastInterfaceUpdate = millis(); // prevent WS update until cooldown
interfaceUpdateCallMode = CALL_MODE_WS_SEND; // schedule WS update
serveJson(request); return; //if JSON contains "v"
} else {
doSerializeConfig = true; //serializeConfig(); //Save new settings to FS
Expand Down

0 comments on commit 0ddfb25

Please sign in to comment.