Fix date/time update rate #45

This commit is contained in:
Matt Walsh
2024-05-19 22:39:15 -05:00
parent 84d39101e5
commit 318c55b92d

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);
}
}
}