widbt: Fix automatic update of Bluetooth connection status

pull/310/head
Gordon Williams 2020-04-15 10:50:07 +01:00
parent 78214a267e
commit 02dcc19709
3 changed files with 4 additions and 3 deletions

View File

@ -355,7 +355,7 @@
{ "id": "widbt",
"name": "Bluetooth Widget",
"icon": "widget.png",
"version":"0.03",
"version":"0.04",
"description": "Show the current Bluetooth connection status in the top right of the clock",
"tags": "widget,bluetooth",
"type":"widget",

View File

@ -1,2 +1,3 @@
0.02: Tweaks for variable size widget system
0.03: Ensure redrawing works with variable size widget system
0.04: Fix automatic update of Bluetooth connection status

View File

@ -13,7 +13,7 @@ function changed() {
WIDGETS["bluetooth"].draw();
g.flip();// turns screen on
}
NRF.on('connected',changed);
NRF.on('disconnected',changed);
NRF.on('connect',changed);
NRF.on('disconnect',changed);
WIDGETS["bluetooth"]={area:"tr",width:24,draw:draw};
})()