1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-05 11:27:09 +00:00

hekate: increase battery enough limits

This commit is contained in:
CTCaer 2022-12-19 05:35:45 +02:00
parent 0e1eece04f
commit 2e989c2338

View File

@ -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, &current_charge_status); bq24193_get_property(BQ24193_ChargeStatus, &current_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)