Merge pull request #1135 from MindTwister/master
Disable screen turn on on bluetooth status changemaster
commit
d3eb68a278
|
|
@ -4,3 +4,4 @@
|
||||||
0.05: Make Bluetooth widget thinner, and when on a bright theme use light grey for disabled color
|
0.05: Make Bluetooth widget thinner, and when on a bright theme use light grey for disabled color
|
||||||
0.06: Tweaking colors for dark/light themes and low bpp screens
|
0.06: Tweaking colors for dark/light themes and low bpp screens
|
||||||
0.07: Memory usage improvements
|
0.07: Memory usage improvements
|
||||||
|
0.08: Disable LCD on, on bluetooth status change
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue