mirror of https://github.com/espruino/BangleApps
chargingstatus: also buzz on disconnect from charging
After a slight delay, to allow other "charging" handlers to run and not interrupt the buzzpull/3385/head
parent
7a3e0d2e7e
commit
a54f199de9
|
@ -1,2 +1,3 @@
|
|||
0.01: First release.
|
||||
0.02: No functional changes, just moved codebase to Typescript.
|
||||
0.03: Also buzz on disconnect from charging
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "Charging Status",
|
||||
"shortName":"ChargingStatus",
|
||||
"icon": "widget.png",
|
||||
"version":"0.02",
|
||||
"version":"0.03",
|
||||
"type": "widget",
|
||||
"description": "A simple widget that shows a yellow lightning icon to indicate whenever the watch is charging. This way one can see the charging status at a glance, no matter which battery widget is being used.",
|
||||
"tags": "widget",
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
widget.width = iconWidth;
|
||||
}
|
||||
else {
|
||||
Promise.resolve().then(function () { return require("buzz").pattern("..;"); });
|
||||
widget.width = 0;
|
||||
}
|
||||
Bangle.drawWidgets();
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
Bangle.buzz();
|
||||
widget.width = iconWidth;
|
||||
} else {
|
||||
Promise.resolve().then(() => require("buzz").pattern("..;"));
|
||||
widget.width = 0;
|
||||
}
|
||||
Bangle.drawWidgets(); // re-layout widgets
|
||||
|
|
Loading…
Reference in New Issue