Fix confusing on/off meaning in 'adapter on/off' action

This commit is contained in:
base47
2026-02-12 02:34:42 +01:00
parent 30a30da9b7
commit 88f501a3b5

View File

@@ -727,9 +727,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
else
log "Error: $setting is not \"on\" or \"off\"."
exit 1