From 73b76cecea91eb888facc9bf254e5495382a111b Mon Sep 17 00:00:00 2001 From: Bela Lubkin Date: Thu, 20 Mar 2014 02:11:28 -0700 Subject: [PATCH] - Fix % battery message in case where we can't read the charging state. --- NookManager/menu/mainmenu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NookManager/menu/mainmenu b/NookManager/menu/mainmenu index 1817b9f..c5780f9 100644 --- a/NookManager/menu/mainmenu +++ b/NookManager/menu/mainmenu @@ -13,7 +13,7 @@ while [ "$key" -ne "3" ]; do POWER=`cat /sys/class/power_supply/bq27510-0/capacity` CHARGING=`cat /sys/class/power_supply/bq27510-0/status` - POWERMSG="$POWER%" + POWERMSG="$POWER%%" [ "" != "$CHARGING" ] && POWERMSG="$POWER%% ($CHARGING)" header="System: $SYSTEM\nBattery Level: $POWERMSG"