Fix comparisons of vw_get values

This commit is contained in:
Jeremy Soller
2023-02-22 14:36:24 -07:00
parent cea89a78d8
commit 4e11f6220b
2 changed files with 6 additions and 6 deletions

View File

@ -245,7 +245,7 @@ uint8_t peci_get_fan_duty(void) {
#if CONFIG_BUS_ESPI
// Use PECI if CPU is not in C10 sleep state
// HOST_C10 virtual wire is high when CPU is in C10 sleep state
peci_on = !vw_get(&VW_HOST_C10);
peci_on = vw_get(&VW_HOST_C10) == VWS_LOW;
#else // CONFIG_BUS_ESPI
// Use PECI if in S0 state
peci_on = power_state == POWER_STATE_S0;