Matrix clock: converting deprecated setWatch call to setUI
parent
f5adb2a032
commit
ea731cd12f
|
|
@ -223,12 +223,7 @@ function startTimers(){
|
||||||
}
|
}
|
||||||
}, 100
|
}, 100
|
||||||
);
|
);
|
||||||
|
|
||||||
if (shouldRedraw()) {
|
|
||||||
draw_clock();
|
draw_clock();
|
||||||
} else {
|
|
||||||
console.log("scheduleDrawClock - skipped redraw");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
console.log("scheduleDrawClock - skipped not visible");
|
console.log("scheduleDrawClock - skipped not visible");
|
||||||
}
|
}
|
||||||
|
|
@ -259,7 +254,6 @@ Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
||||||
startTimers();
|
startTimers();
|
||||||
// Show launcher when middle button pressed
|
Bangle.setUI("clock");
|
||||||
setWatch(Bangle.showLauncher, BTN2,{repeat:false,edge:"falling"});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue