mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 03:11:16 +00:00
bootloader: remove rtc stop alarm from auto hos powerr off
It's done in power_set_state anyway.
This commit is contained in:
parent
0a9c71d5d6
commit
6739f03893
1 changed files with 2 additions and 5 deletions
|
@ -98,17 +98,14 @@ void check_power_off_from_hos()
|
|||
u8 hosWakeup = i2c_recv_byte(I2C_5, MAX77620_I2C_ADDR, MAX77620_REG_IRQTOP);
|
||||
if (hosWakeup & MAX77620_IRQ_TOP_RTC_MASK)
|
||||
{
|
||||
// Stop the alarm, in case we injected too fast.
|
||||
max77620_rtc_stop_alarm();
|
||||
|
||||
if (h_cfg.autohosoff == 1)
|
||||
{
|
||||
render_default_bootlogo();
|
||||
|
||||
display_backlight_brightness(10, 5000);
|
||||
display_backlight_brightness(10, 5000);
|
||||
display_backlight_brightness(100, 25000);
|
||||
msleep(600);
|
||||
display_backlight_brightness(0, 20000);
|
||||
display_backlight_brightness(0, 20000);
|
||||
}
|
||||
power_set_state(POWER_OFF_RESET);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue