Fix date/time update rate #45

This commit is contained in:
Matt Walsh committed 2024-05-19 22:39:15 -05:00
1 parent 84d39101e5
commit 318c55b92d
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}
}