diff --git a/apps/widbt/widget.js b/apps/widbt/widget.js index c7ef8c0ad..a6c15a97f 100644 --- a/apps/widbt/widget.js +++ b/apps/widbt/widget.js @@ -5,8 +5,11 @@ WIDGETS["bluetooth"]={area:"tr",width:15,draw:function() { else g.setColor(g.theme.dark ? "#666" : "#999"); g.drawImage(atob("CxQBBgDgFgJgR4jZMawfAcA4D4NYybEYIwTAsBwDAA=="),2+this.x,2+this.y); -},changed:function() { +},connect:function() { + WIDGETS["bluetooth"].draw(); +},dicconnect:function() { + Bangle.buzz(1000,1); // buzz on connection loss WIDGETS["bluetooth"].draw(); }}; -NRF.on('connect',WIDGETS["bluetooth"].changed); -NRF.on('disconnect',WIDGETS["bluetooth"].changed); +NRF.on('connect',WIDGETS["bluetooth"].connect); +NRF.on('disconnect',WIDGETS["bluetooth"].disconnect);