diff --git a/battery.sh b/battery.sh index 6c3a2f1..6a317dc 100644 --- a/battery.sh +++ b/battery.sh @@ -242,7 +242,7 @@ if [[ "$action" == "maintain_synchronous" ]]; then # Keep track of status is_charging=$( get_smc_charging_status ) - if [[ "$battery_percentage" -gt "$setting" && "$is_charging" == "enabled" ]]; then + if [[ "$battery_percentage" -ge "$setting" && "$is_charging" == "enabled" ]]; then log "Charge above $setting" disable_charging @@ -364,4 +364,4 @@ if [[ "$action" == "remove_daemon" ]];then rm $daemon_path 2> /dev/null exit 0 -fi \ No newline at end of file +fi