drained: redisplay immediately when charge status changes
parent
e969d8359d
commit
0fb7bf42ec
|
|
@ -6,3 +6,4 @@
|
|||
0.05: Enhance menu: permit toggling bluetooth
|
||||
0.06: Display clock in green when charging, with "charging" text
|
||||
0.07: Correctly restore full power when the charged threshold is reached
|
||||
0.08: Redisplay immediately on changes to charging status
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ Bangle.on("charging", function (charging) {
|
|||
drainedInterval = clearInterval(drainedInterval);
|
||||
if (charging)
|
||||
drainedInterval = setInterval(checkCharge, interval * 60 * 1000);
|
||||
draw();
|
||||
});
|
||||
if (!keepStartup) {
|
||||
var storage = require("Storage");
|
||||
|
|
|
|||
|
|
@ -151,6 +151,7 @@ Bangle.on("charging", charging => {
|
|||
drainedInterval = clearInterval(drainedInterval) as undefined;
|
||||
if(charging)
|
||||
drainedInterval = setInterval(checkCharge, interval * 60 * 1000);
|
||||
draw(); // redraw to update charging status on screen
|
||||
});
|
||||
|
||||
if(!keepStartup){
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "drained",
|
||||
"name": "Drained",
|
||||
"version": "0.07",
|
||||
"version": "0.08",
|
||||
"description": "Switches to displaying a simple clock when the battery percentage is low, and disables some peripherals",
|
||||
"readme": "README.md",
|
||||
"icon": "icon.png",
|
||||
|
|
|
|||
Loading…
Reference in New Issue