From d4a777a42ff7cd72830e065f7d7afc971869c171 Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Tue, 12 Aug 2025 16:11:20 -0400 Subject: [PATCH] Apply suggestion from @bobrippling Co-authored-by: Rob Pilling --- 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 cf31270b0..6a733a248 100644 --- a/apps/smartbatt/clkinfo.js +++ b/apps/smartbatt/clkinfo.js @@ -26,7 +26,7 @@ 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+batt*(s-9)/100,15); g.transparent=0; - img=g.asImage("string"); + return g.asImage("string"); } //calls both updates for values and icons.