Skip to content

Commit

Permalink
Possible fix for:
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Oct 22, 2023
1 parent c4f4b24 commit fb3816e
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 @@ -165,6 +165,8 @@ void updateInterfaces(uint8_t callMode)

sendDataWs();
lastInterfaceUpdate = millis();
interfaceUpdateCallMode = 0; //disable further updates

if (callMode == CALL_MODE_WS_SEND) return;

#ifndef WLED_DISABLE_ALEXA
Expand All @@ -174,7 +176,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 @@ -211,6 +211,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 fb3816e

Please sign in to comment.