mirror of https://github.com/espruino/BangleApps
widhid: initial display based on NRF.connected
parent
a2e9c8db1e
commit
610f4d61a7
|
@ -105,7 +105,7 @@
|
||||||
? require("heatshrink").decompress(atob("jEYxH+AEfH44XXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA=="))
|
? require("heatshrink").decompress(atob("jEYxH+AEfH44XXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA=="))
|
||||||
: require("heatshrink").decompress(atob("jEYxH+AEcdjoXXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA==")), this.x + 2, this.y + 2);
|
: require("heatshrink").decompress(atob("jEYxH+AEcdjoXXAAYXXDKIXZDYp3pC/6KHUMwWHC/4XvUy4YGdqoA/AFoA==")), this.x + 2, this.y + 2);
|
||||||
},
|
},
|
||||||
width: 24,
|
width: NRF.getSecurityStatus().connected ? 24 : 0,
|
||||||
};
|
};
|
||||||
var redraw = function () { return setTimeout(Bangle.drawWidgets, 50); };
|
var redraw = function () { return setTimeout(Bangle.drawWidgets, 50); };
|
||||||
NRF.on("connect", function () {
|
NRF.on("connect", function () {
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
this.y! + 2
|
this.y! + 2
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
width: 24,
|
width: NRF.getSecurityStatus().connected ? 24 : 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
const redraw = () => setTimeout(Bangle.drawWidgets, 50);
|
const redraw = () => setTimeout(Bangle.drawWidgets, 50);
|
||||||
|
|
Loading…
Reference in New Issue