From c54ed3455cc8acd865d3d8584efbe9067227ce2d Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Wed, 13 Nov 2024 02:57:21 +1100 Subject: [PATCH] driveclock: Run initial update immediately --- thrimbletrimmer/driveclock/drive.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thrimbletrimmer/driveclock/drive.js b/thrimbletrimmer/driveclock/drive.js index 5db2829..1ba30f7 100644 --- a/thrimbletrimmer/driveclock/drive.js +++ b/thrimbletrimmer/driveclock/drive.js @@ -116,5 +116,7 @@ if (test) { } }, interval); } else { + // Do first update immediately, then every UPDATE_INTERVAL_MS setInterval(update, UPDATE_INTERVAL_MS); + update(); }