|
@ -311,9 +311,9 @@ void _wsUpdate(JsonObject& root) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void _wsDoUpdate(bool reset = false) { |
|
|
void _wsDoUpdate(bool reset = false) { |
|
|
static unsigned long last = 0; |
|
|
|
|
|
|
|
|
static unsigned long last = millis(); |
|
|
if (reset) { |
|
|
if (reset) { |
|
|
last = 0; |
|
|
|
|
|
|
|
|
last = millis() + WS_UPDATE_INTERVAL; |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|