Fix power panel discharge state
This commit is contained in:
1 parent
b83505d738
commit
740f4e2c82
4 files changed
+24
-15
No files matched your search
@@ -58,7 +58,7 @@ fi
|
||||
|
||||
charge_holding=false
|
||||
if [[ $ac_online == "true" && -n $threshold_end ]]; then
|
||||
if [[ $state == "discharging" || $state == "pending-charge" ]]; then
|
||||
if [[ $state == "pending-charge" ]]; then
|
||||
charge_holding=true
|
||||
elif [[ $state == "fully-charged" ]] && (( percentage < 99 )); then
|
||||
charge_holding=true
|
||||
|
||||
Reference in new issue
Block a user