Skip to content

Commit 9eaff57

Browse files
authored
Fix battery not drawing
1 parent a199abb commit 9eaff57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/smartbatt/clkinfo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
function drawBatt(){
2525
batt =E.getBattery();
2626
var s=24,g=Graphics.createArrayBuffer(24,24,1,{msb:true});
27-
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);
27+
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);
2828
g.transparent=0;
2929
img=g.asImage("string");
3030
}

0 commit comments

Comments
 (0)