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

Allow bypassing empty battery charging

This commit is contained in:
CTCaer 2020-04-14 17:55:31 +03:00
parent da149c296f
commit ef11dd883a

View file

@ -1135,7 +1135,7 @@ static void _show_errors()
{
gfx_clear_grey(0x1B);
gfx_con_setpos(0, 0);
display_backlight_brightness(h_cfg.backlight, 1000);
display_backlight_brightness(150, 1000);
if (h_cfg.errors & ERR_LIBSYS_LP0)
WPRINTF("Missing LP0 (sleep mode) library!\n");
@ -1242,6 +1242,10 @@ static void _check_low_battery()
timer = get_tmr_ms() + 15000;
}
// Check if forcefully continuing.
if (btn_read_vol() == (BTN_VOL_UP | BTN_VOL_DOWN))
break;
charge_status = current_charge_status;
}