Skip to content

Commit

Permalink
Update wid.js
Browse files Browse the repository at this point in the history
  • Loading branch information
miseler authored Jun 3, 2024
1 parent 81b5d4b commit aa84b06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/widdevst/wid.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
g.setColor(col(t)); g.drawRect(x + 1, y + 21 - t * 20, x + 2, y + 21);
}
else if(borderMode==1) { // battery gauge
let b = E.getBattery(); b=80;
/*
let b = E.getBattery();
/*/
let b=80;
//*/
let corner = 4;
if(b <= 55) {g.drawLine(x+21-corner, y+0, x+21, y+0);g.drawLine(x+21, y+1, x+21, y+corner);}
if(b <= 30) {g.drawLine(x+21-corner, y+22, x+21, y+22);g.drawLine(x+21, y+22-corner, x+21, y+21);}
Expand Down

0 comments on commit aa84b06

Please sign in to comment.