Use BUF_PLT_RST_N to trigger setting power limits again

This commit is contained in:
Jeremy Soller 2020-06-25 11:34:41 -06:00
parent 669f25e71a
commit 72755c81e4
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;