From f1e58176d8ef8f1c8bb78ba154978c871072fac7 Mon Sep 17 00:00:00 2001 From: Drath Date: Mon, 13 Apr 2026 21:13:36 +0200 Subject: [PATCH] bugfix --- src/fan_driver.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fan_driver.h b/src/fan_driver.h index 899600a..e22958d 100644 --- a/src/fan_driver.h +++ b/src/fan_driver.h @@ -114,7 +114,10 @@ static void fan_driver_compute_rpm(void) { static void fan_driver_control_loop(void) { // if we need to power down, disable power pin and return fan_driver_set_power(!fan_driver_powered_down); - if (fan_driver_powered_down) return; + if (fan_driver_powered_down) { + fan_driver_current_rpm = 0; + return; + } // see if fan stalled, set rpm to 0 and return if it is static uint32_t last_delta_idx = 0xffffffff;