smartbatt: remove whitespace

master
Rob Pilling 2025-08-17 18:35:13 +01:00
parent 1eac455a29
commit c138ba003d
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
var batt; var batt;
//updates values //updates values
function getHrsFormatted(hrsLeft){ function getHrsFormatted(hrsLeft){
var daysLeft = hrsLeft / 24; var daysLeft = hrsLeft / 24;
@ -16,7 +16,7 @@
return Math.round(hrsLeft)+"h"; return Math.round(hrsLeft)+"h";
} }
} }
//draws battery icon and fill bar //draws battery icon and fill bar
function drawBatt(){ function drawBatt(){
batt =E.getBattery(); batt =E.getBattery();
@ -37,7 +37,7 @@
items: [ items: [
{ name : "BattStatus", { name : "BattStatus",
get : () => { get : () => {
drawBatt(); drawBatt();
var data=require("smartbatt").get(); var data=require("smartbatt").get();