If battery value is over 100% than it's not calibrated yet ... and we have to tell that
This commit is contained in:
parent
5d820d7e25
commit
2157a00850
@ -109,6 +109,11 @@ if [[ "$UID" == 0 && ($HARDWARE = "sun7i" || $HARDWARE = "Allwinner") ]]; then
|
||||
else
|
||||
batt_status=" discharging"
|
||||
fi
|
||||
if [[ "$CHARG_IND" == "1" && "$batt_percent" -gt "100" ]]; then
|
||||
batt_status=" uncalibrated"
|
||||
batt_percent=100
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user