Disable screen turn on on bluetooth status change

pull/1135/head
Kristoffer Sall-Storgaard 2021-12-17 23:11:41 +01:00 committed by GitHub
parent d9d5926416
commit 7ad29b48b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -7,7 +7,6 @@ WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() {
g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y); g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y);
},changed:function() { },changed:function() {
WIDGETS["bluetooth"].draw(); WIDGETS["bluetooth"].draw();
Bangle.setLCDPower(1); // turn screen on
}}; }};
NRF.on('connect',WIDGETS["bluetooth"].changed); NRF.on('connect',WIDGETS["bluetooth"].changed);
NRF.on('disconnect',WIDGETS["bluetooth"].changed); NRF.on('disconnect',WIDGETS["bluetooth"].changed);