Let us call draw at beginning of minute

pull/1452/head
Marco Heiming 2022-02-08 16:51:49 +01:00
parent e27c43b139
commit 64bdddc8f1
1 changed files with 6 additions and 1 deletions

View File

@ -827,5 +827,10 @@ if (isCircleEnabled("hr")) {
Bangle.setUI("clock");
Bangle.loadWidgets();
// schedule a draw for the next minute
setTimeout(function() {
// draw every 60 seconds
setInterval(draw,60000);
}, 60000 - (Date.now() % 60000));
draw();
setInterval(draw, 60000);