diff --git a/code/espurna/ws.ino b/code/espurna/ws.ino index b0731b4d..51a28047 100644 --- a/code/espurna/ws.ino +++ b/code/espurna/ws.ino @@ -311,9 +311,9 @@ void _wsUpdate(JsonObject& root) { } void _wsDoUpdate(bool reset = false) { - static unsigned long last = 0; + static unsigned long last = millis(); if (reset) { - last = 0; + last = millis() + WS_UPDATE_INTERVAL; return; }