Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drained: redisplay immediately when charge status changes #3742

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/drained/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions apps/drained/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions apps/drained/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
2 changes: 1 addition & 1 deletion apps/drained/metadata.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down