Fix fan_max keeping fan on when in S0iX

This commit is contained in:
Jeremy Soller
2021-04-02 10:21:39 -06:00
committed by Jeremy Soller
parent 2401fcc50d
commit a04d353096
3 changed files with 9 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
#include <board/fan.h>
#include <board/gpio.h>
#include <board/peci.h>
#include <board/power.h>
#include <common/debug.h>
#include <common/macro.h>
@@ -81,7 +82,7 @@ void dgpu_event(void) {
duty = PWM_DUTY(0);
}
if (fan_max) {
if (peci_on && fan_max) {
// Override duty if fans are manually set to maximum
duty = PWM_DUTY(100);
} else {