From 772d5b9d3050b6302ffc094a7759d45ae74d17ac Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Sun, 4 Sep 2016 06:47:28 +1000 Subject: [PATCH] FAN control: Fine-tune minimum PWM It appears the minimum PWM is more strongly dependent on battery voltage than I had planned, it needs to be just a little higher to ensure the fan keeps turning at low RPM. --- powerctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerctl.c b/powerctl.c index 6534f6e..9165a17 100644 --- a/powerctl.c +++ b/powerctl.c @@ -95,7 +95,7 @@ static volatile uint8_t led_timeout = 0; */ #define TEMP_MIN (270 << 6) /*!< ~20°C, approx ADC reading */ #define TEMP_MAX (300 << 6) /*!< ~30°C, approx ADC reading */ -#define FAN_PWM_MIN (80) /*!< Minimum PWM value */ +#define FAN_PWM_MIN (88) /*!< Minimum PWM value */ #define FAN_PWM_MAX (255) /*!< Maximum PWM value */ /*! Fan kick-start timeout */ static volatile uint8_t fan_timeout = 0;