mirror of https://github.com/espruino/BangleApps
Code hopefully correct for B1
parent
4d01bb44f2
commit
7a2acd8c48
|
@ -17,10 +17,8 @@ Bangle.setUI({
|
|||
mode : 'custom',
|
||||
back : load, // B2: Clicking the hardware button or pressing upper left corner turns off (where red back button would be)
|
||||
btn : (n)=>{ // B1: Any button turns off
|
||||
if (process.env.HWVERSION==1) {
|
||||
setWatch(()=>load(), BTN1, {edge: 'rising'});
|
||||
setWatch(()=>load(), BTN2, {edge: 'rising'});
|
||||
setWatch(()=>load(), BTN3, {edge: 'rising'});
|
||||
if (process.env.HWVERSION==1 && (n==1 || n==2 || n==3)) {
|
||||
load();
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue