Skip to content

Commit

Permalink
- Fix % battery message in case where we can't read the charging state.
Browse files Browse the repository at this point in the history
  • Loading branch information
filbo committed Mar 20, 2014
1 parent 9d376ef commit 73b76ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NookManager/menu/mainmenu
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

1 comment on commit 73b76ce

@doozan
Copy link

@doozan doozan commented on 73b76ce Mar 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be squashed into the previous commit. From your working directory, run 'git rebase -i HEAD~2' to show the most recent commits, then adjust the line that starts "pick 73b76ce" to be "s 73b76ce". After that you can run 'git push --force work-area'

Note, you should never run 'git push --force' on a repo that anyone else is pulling from (it breaks their working copies), but since this is your personal fork it's fine.

Please sign in to comment.