From df654ca53a32b1ca5bfb8ba122702bfd8bf5b67a Mon Sep 17 00:00:00 2001 From: drath Date: Sun, 19 Apr 2026 00:40:33 +0200 Subject: [PATCH] Update src/fan_driver.h --- src/fan_driver.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fan_driver.h b/src/fan_driver.h index df1f02c..7ec5f58 100644 --- a/src/fan_driver.h +++ b/src/fan_driver.h @@ -108,6 +108,7 @@ static void fan_driver_compute_rpm(void) { delta += _fan_driver_delta[i]; delta /= rpm_buf_size; fan_driver_current_rpm = delta ? 30000000 / 2 / delta : 0; + // delta is the number of ticks elapsed between tach pin pulses // each tick is 2us. one minute is 30000000 ticks, each rotation is 2 pulses }