diff options
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/thermal.c b/common/thermal.c index 60101516da..4426aa9ae9 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -172,7 +172,7 @@ static void thermal_control(void) * profiles to each fan - in case one fan cools the CPU while another * cools the radios or battery. */ - for (i = 0; i < CONFIG_FANS; i++) + for (i = 0; i < fan_get_count(); i++) fan_set_percent_needed(i, fmax); #endif } |