mirror of https://github.com/espruino/BangleApps
widbt: Fix automatic update of Bluetooth connection status
parent
78214a267e
commit
02dcc19709
|
@ -355,7 +355,7 @@
|
||||||
{ "id": "widbt",
|
{ "id": "widbt",
|
||||||
"name": "Bluetooth Widget",
|
"name": "Bluetooth Widget",
|
||||||
"icon": "widget.png",
|
"icon": "widget.png",
|
||||||
"version":"0.03",
|
"version":"0.04",
|
||||||
"description": "Show the current Bluetooth connection status in the top right of the clock",
|
"description": "Show the current Bluetooth connection status in the top right of the clock",
|
||||||
"tags": "widget,bluetooth",
|
"tags": "widget,bluetooth",
|
||||||
"type":"widget",
|
"type":"widget",
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
0.02: Tweaks for variable size widget system
|
0.02: Tweaks for variable size widget system
|
||||||
0.03: Ensure redrawing works with variable size widget system
|
0.03: Ensure redrawing works with variable size widget system
|
||||||
|
0.04: Fix automatic update of Bluetooth connection status
|
||||||
|
|
|
@ -13,7 +13,7 @@ function changed() {
|
||||||
WIDGETS["bluetooth"].draw();
|
WIDGETS["bluetooth"].draw();
|
||||||
g.flip();// turns screen on
|
g.flip();// turns screen on
|
||||||
}
|
}
|
||||||
NRF.on('connected',changed);
|
NRF.on('connect',changed);
|
||||||
NRF.on('disconnected',changed);
|
NRF.on('disconnect',changed);
|
||||||
WIDGETS["bluetooth"]={area:"tr",width:24,draw:draw};
|
WIDGETS["bluetooth"]={area:"tr",width:24,draw:draw};
|
||||||
})()
|
})()
|
||||||
|
|
Loading…
Reference in New Issue