diff --git a/hardware/raspberrypi/fan/files/fan_ctrl.py b/hardware/raspberrypi/fan/files/fan_ctrl.py index 1ce9750..0ec3aaf 100644 --- a/hardware/raspberrypi/fan/files/fan_ctrl.py +++ b/hardware/raspberrypi/fan/files/fan_ctrl.py @@ -8,12 +8,12 @@ import time import sys # Configuration -FAN_PIN = getenv(RPI_FAN_PIN, 21) # BCM pin used to drive transistor's base -WAIT_TIME = getenv(RPI_FAN_WAITTIME, 5) # [s] Time to wait between each refresh -FAN_MIN = getenv(RPI_FAN_MIN, 60) # [%] Fan minimum speed. -PWM_FREQ = getenv(RPI_FAN_PWMFREW, 50000) # [Hz] Change this value if fan has strange behavior +FAN_PIN = getenv("RPI_FAN_PIN", 21) # BCM pin used to drive transistor's base +WAIT_TIME = getenv("RPI_FAN_WAITTIME", 5) # [s] Time to wait between each refresh +FAN_MIN = getenv("RPI_FAN_MIN", 60) # [%] Fan minimum speed. +PWM_FREQ = getenv("RPI_FAN_PWMFREQ", 50000) # [Hz] Change this value if fan has strange behavior # Fan speed will change only of the difference of temperature is higher than hysteresis -hyst = getenv(RPI_FAN_HYST, 5) +hyst = getenv("RPI_FAN_HYST", 5) # Configurable temperature and fan speed steps tempSteps = [50, 55, 57, 60, 68, 70] # [°C]