Possible fix for:

- #3382
- #3312
This commit is contained in:
Blaz Kristan
2023-10-22 17:54:00 +02:00
committed by Frank
parent bf6932ecb7
commit 0ddfb25ad0
2 changed files with 4 additions and 1 deletions

View File

@@ -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
@@ -172,7 +174,6 @@ void updateInterfaces(uint8_t callMode)
}
#endif
doPublishMqtt = true;
interfaceUpdateCallMode = 0; //disable
}

View File

@@ -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