Use BUF_PLT_RST_N to trigger setting power limits again
This commit is contained in:
parent
669f25e71a
commit
72755c81e4
@ -52,7 +52,7 @@ void board_event(void) {
|
||||
|
||||
static bool last_power_limit_ac = true;
|
||||
// We don't use power_state because the latency needs to be low
|
||||
if (gpio_get(&SUSB_N_PCH)) {
|
||||
if (gpio_get(&BUF_PLT_RST_N)) {
|
||||
if (last_power_limit_ac != ac) {
|
||||
board_on_ac(ac);
|
||||
last_power_limit_ac = ac;
|
||||
|
@ -53,7 +53,7 @@ void board_event(void) {
|
||||
|
||||
static bool last_power_limit_ac = true;
|
||||
// We don't use power_state because the latency needs to be low
|
||||
if (gpio_get(&SUSB_N_PCH)) {
|
||||
if (gpio_get(&BUF_PLT_RST_N)) {
|
||||
if (last_power_limit_ac != ac) {
|
||||
board_on_ac(ac);
|
||||
last_power_limit_ac = ac;
|
||||
|
@ -57,7 +57,7 @@ void board_event(void) {
|
||||
|
||||
static bool last_power_limit_ac = true;
|
||||
// We don't use power_state because the latency needs to be low
|
||||
if (gpio_get(&SUSB_N_PCH)) {
|
||||
if (gpio_get(&BUF_PLT_RST_N)) {
|
||||
if (last_power_limit_ac != ac) {
|
||||
board_on_ac(ac);
|
||||
last_power_limit_ac = ac;
|
||||
|
Loading…
x
Reference in New Issue
Block a user