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:
parent
da149c296f
commit
ef11dd883a
1 changed files with 5 additions and 1 deletions
|
@ -1135,7 +1135,7 @@ static void _show_errors()
|
||||||
{
|
{
|
||||||
gfx_clear_grey(0x1B);
|
gfx_clear_grey(0x1B);
|
||||||
gfx_con_setpos(0, 0);
|
gfx_con_setpos(0, 0);
|
||||||
display_backlight_brightness(h_cfg.backlight, 1000);
|
display_backlight_brightness(150, 1000);
|
||||||
|
|
||||||
if (h_cfg.errors & ERR_LIBSYS_LP0)
|
if (h_cfg.errors & ERR_LIBSYS_LP0)
|
||||||
WPRINTF("Missing LP0 (sleep mode) library!\n");
|
WPRINTF("Missing LP0 (sleep mode) library!\n");
|
||||||
|
@ -1242,6 +1242,10 @@ static void _check_low_battery()
|
||||||
timer = get_tmr_ms() + 15000;
|
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;
|
charge_status = current_charge_status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue