1
0
Fork 0

Unify launcher for bangle.js 2 and 1

master
Kendell R 2022-01-15 15:33:19 -08:00 committed by GitHub
parent 3606267aec
commit 75ff63338f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -63,8 +63,11 @@ E.showScroller({
}
});
// pressing button goes back
setWatch(_=>load(), BTN1, {edge:"falling"});
// on bangle.js 2, the screen is used for navigating, so the single button goes back
// on bangle.js 1, the buttons are used for navigating
if (process.env.HWVERSION==2) {
setWatch(_=>load(), BTN1, {edge:"falling"});
}
// 10s of inactivity goes back to clock
Bangle.setLocked(false); // unlock initially