Fix date/time update rate #45
This commit is contained in:
parent
84d39101e5
commit
318c55b92d
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ class WeatherDisplay {
|
||||||
// auto clock refresh
|
// auto clock refresh
|
||||||
if (!this.dateTimeInterval) {
|
if (!this.dateTimeInterval) {
|
||||||
// only draw if canvas is active to conserve battery
|
// only draw if canvas is active to conserve battery
|
||||||
setInterval(() => this.active && this.drawCurrentDateTime(), 100);
|
this.dateTimeInterval = setInterval(() => this.active && this.drawCurrentDateTime(), 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue