From aa84b0603f4453f63da8ca039b755b02cf244215 Mon Sep 17 00:00:00 2001 From: Alexander Miseler Date: Mon, 3 Jun 2024 22:23:41 +0200 Subject: [PATCH] Update wid.js --- apps/widdevst/wid.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/widdevst/wid.js b/apps/widdevst/wid.js index 12fff6a746..47a5d659f1 100644 --- a/apps/widdevst/wid.js +++ b/apps/widdevst/wid.js @@ -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);}