If battery value is over 100% than it's not calibrated yet ... and we have to tell that

This commit is contained in:
Igor Pečovnik 2016-01-15 09:06:35 +01:00
parent 5d820d7e25
commit 2157a00850

View File

@ -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