From 8a5a0fb309890824c997f365ef89fe4179e34ca5 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Sat, 20 Apr 2019 07:07:41 +0300 Subject: [PATCH] Send status right after boot (#1700) --- code/espurna/ws.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }