Do not power off on suspend
This commit is contained in:
parent
65c67574c0
commit
fb69390a9d
@ -300,7 +300,9 @@ void power_event(void) {
|
|||||||
if (ack_new && !ack_last) {
|
if (ack_new && !ack_last) {
|
||||||
DEBUG("%02X: SUSPWRDNACK asserted\n", main_cycle);
|
DEBUG("%02X: SUSPWRDNACK asserted\n", main_cycle);
|
||||||
|
|
||||||
if (state == POWER_STATE_S5) {
|
if (gpio_get(&SUSC_N_PCH)) {
|
||||||
|
DEBUG("%02X: entering S3 state\n", main_cycle);
|
||||||
|
} else if (state == POWER_STATE_S5) {
|
||||||
power_off_s5();
|
power_off_s5();
|
||||||
state = POWER_STATE_DS5;
|
state = POWER_STATE_DS5;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user