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)
master
thyttan 2023-04-08 23:56:21 +02:00 committed by GitHub
parent 7ee3279a02
commit 663ea983e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -65,12 +65,13 @@ const draw = () => {
}; };
Bangle.setUI({ Bangle.setUI({
mode: "clock", mode: "custom",
remove: () => { remove: () => {
if (nextDraw) clearTimeout(nextDraw); if (nextDraw) clearTimeout(nextDraw);
nextDraw = undefined; nextDraw = undefined;
}, },
}); });
Bangle.CLOCK=1;
g.clear(); g.clear();
draw(); draw();