mirror of https://github.com/espruino/BangleApps
Change to 'custom' setUI to not set btn watch
> ['clock' - called for clocks. Sets Bangle.CLOCK=1 and allows a button to start the launcher](https://www.espruino.com/Reference#l_Bangle_setUI)pull/2684/head
parent
7ee3279a02
commit
663ea983e4
|
@ -65,12 +65,13 @@ const draw = () => {
|
|||
};
|
||||
|
||||
Bangle.setUI({
|
||||
mode: "clock",
|
||||
mode: "custom",
|
||||
remove: () => {
|
||||
if (nextDraw) clearTimeout(nextDraw);
|
||||
nextDraw = undefined;
|
||||
},
|
||||
});
|
||||
Bangle.CLOCK=1;
|
||||
|
||||
g.clear();
|
||||
draw();
|
||||
|
|
Loading…
Reference in New Issue