mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-10 04:21:45 +00:00
hekate: increase battery enough limits
This commit is contained in:
parent
0e1eece04f
commit
2e989c2338
1 changed files with 2 additions and 2 deletions
|
@ -1164,7 +1164,7 @@ static void _check_low_battery()
|
||||||
bq24193_get_property(BQ24193_ChargeStatus, &charge_status);
|
bq24193_get_property(BQ24193_ChargeStatus, &charge_status);
|
||||||
max17050_get_property(MAX17050_AvgVCELL, &batt_volt);
|
max17050_get_property(MAX17050_AvgVCELL, &batt_volt);
|
||||||
|
|
||||||
enough_battery = charge_status ? 3250 : 3000;
|
enough_battery = charge_status ? 3300 : 3100;
|
||||||
|
|
||||||
// If battery voltage is enough, exit.
|
// If battery voltage is enough, exit.
|
||||||
if (batt_volt > enough_battery || !batt_volt)
|
if (batt_volt > enough_battery || !batt_volt)
|
||||||
|
@ -1197,7 +1197,7 @@ static void _check_low_battery()
|
||||||
int current_charge_status = 0;
|
int current_charge_status = 0;
|
||||||
bq24193_get_property(BQ24193_ChargeStatus, ¤t_charge_status);
|
bq24193_get_property(BQ24193_ChargeStatus, ¤t_charge_status);
|
||||||
max17050_get_property(MAX17050_AvgVCELL, &batt_volt);
|
max17050_get_property(MAX17050_AvgVCELL, &batt_volt);
|
||||||
enough_battery = current_charge_status ? 3250 : 3000;
|
enough_battery = current_charge_status ? 3300 : 3100;
|
||||||
|
|
||||||
// If battery voltage is enough, exit.
|
// If battery voltage is enough, exit.
|
||||||
if (batt_volt > enough_battery)
|
if (batt_volt > enough_battery)
|
||||||
|
|
Loading…
Reference in a new issue