Skip to content

Commit

Permalink
fix adapter action
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Tacu committed Dec 4, 2023
1 parent 1494491 commit ada960b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ if [[ "$action" == "adapter" ]]; then

# Set charging to on and off
if [[ "$setting" == "on" ]]; then
enable_discharging
elif [[ "$setting" == "off" ]]; then
disable_discharging
elif [[ "$setting" == "off" ]]; then
enable_discharging
fi

exit 0
Expand Down

0 comments on commit ada960b

Please sign in to comment.