diff --git a/scripts/SATA-hat.sh b/scripts/SATA-hat.sh index 9cbd704..a409752 100755 --- a/scripts/SATA-hat.sh +++ b/scripts/SATA-hat.sh @@ -6,6 +6,7 @@ PWM_PATH="$BASE_PATH"/pwm/pwmchip0 # GPIO pins CPU_FAN=12 +HDD_FAN=13 # Values LOW=0 @@ -49,11 +50,13 @@ set_pwm() { turn_on() { set_gpio $CPU_FAN $HIGH + set_gpio $HDD_FAN $HIGH set_pwm } turn_off() { set_gpio $CPU_FAN $LOW clean + set_gpio $HDD_FAN $LOW clean set_pwm clean }