master
Gordon Williams 2021-10-22 12:57:53 +01:00
parent 98a6bd7d43
commit 4fae5fc05d
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,3 @@
NRF.on('connect',WIDGETS["bluetooth"].changed);
NRF.on('disconnect',WIDGETS["bluetooth"].changed);
WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() { WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
g.reset(); g.reset();
if (NRF.getSecurityStatus().connected) if (NRF.getSecurityStatus().connected)
@ -11,3 +9,5 @@ WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
WIDGETS["bluetooth"].draw(); WIDGETS["bluetooth"].draw();
Bangle.setLCDPower(1); // turn screen on Bangle.setLCDPower(1); // turn screen on
}}; }};
NRF.on('connect',WIDGETS["bluetooth"].changed);
NRF.on('disconnect',WIDGETS["bluetooth"].changed);