Skip to content

Commit

Permalink
Merge pull request #207 from maxtacu/main
Browse files Browse the repository at this point in the history
fix adapter action
  • Loading branch information
actuallymentor authored Jan 17, 2024
2 parents 1030ecf + ada960b commit cc936c7
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 cc936c7

Please sign in to comment.