From 9eaff57466995d788d55b94f4b4ec4e2696adffc Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Sat, 2 Aug 2025 16:37:38 -0400 Subject: [PATCH] Fix battery not drawing --- apps/smartbatt/clkinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/smartbatt/clkinfo.js b/apps/smartbatt/clkinfo.js index cf8b6de11..cf31270b0 100644 --- a/apps/smartbatt/clkinfo.js +++ b/apps/smartbatt/clkinfo.js @@ -24,7 +24,7 @@ function drawBatt(){ batt =E.getBattery(); var s=24,g=Graphics.createArrayBuffer(24,24,1,{msb:true}); - g.fillRect(0,6,s-3,18).clearRect(2,8,s-5,16).fillRect(s-2,10,s,15).fillRect(3,9,3+v*(s-9)/100,15); + g.fillRect(0,6,s-3,18).clearRect(2,8,s-5,16).fillRect(s-2,10,s,15).fillRect(3,9,3+batt*(s-9)/100,15); g.transparent=0; img=g.asImage("string"); }