From 318c55b92dfdcf2fc5fe5503a5904c53e6ef2e5a Mon Sep 17 00:00:00 2001 From: Matt Walsh Date: Sun, 19 May 2024 22:39:15 -0500 Subject: [PATCH] Fix date/time update rate #45 --- server/scripts/modules/weatherdisplay.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/scripts/modules/weatherdisplay.mjs b/server/scripts/modules/weatherdisplay.mjs index 247d5d0..553c590 100644 --- a/server/scripts/modules/weatherdisplay.mjs +++ b/server/scripts/modules/weatherdisplay.mjs @@ -169,7 +169,7 @@ class WeatherDisplay { // auto clock refresh if (!this.dateTimeInterval) { // only draw if canvas is active to conserve battery - setInterval(() => this.active && this.drawCurrentDateTime(), 100); + this.dateTimeInterval = setInterval(() => this.active && this.drawCurrentDateTime(), 100); } } }