Matrix clock: converting deprecated setWatch call to setUI

pull/826/head
adrian w kirk 2021-09-28 00:19:50 +01:00
parent f5adb2a032
commit ea731cd12f
1 changed files with 2 additions and 8 deletions

View File

@ -223,12 +223,7 @@ function startTimers(){
}
}, 100
);
if (shouldRedraw()) {
draw_clock();
} else {
console.log("scheduleDrawClock - skipped redraw");
}
draw_clock();
} else {
console.log("scheduleDrawClock - skipped not visible");
}
@ -259,7 +254,6 @@ Bangle.loadWidgets();
Bangle.drawWidgets();
startTimers();
// Show launcher when middle button pressed
setWatch(Bangle.showLauncher, BTN2,{repeat:false,edge:"falling"});
Bangle.setUI("clock");