summaryrefslogtreecommitdiff
path: root/test/fan.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fan.c')
-rw-r--r--test/fan.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fan.c b/test/fan.c
index c5e4c32fd8..6ce33ae495 100644
--- a/test/fan.c
+++ b/test/fan.c
@@ -31,8 +31,9 @@ static int test_fan(void)
sleep(2);
- /* With nothing else to do, fans default to full-on */
- TEST_ASSERT(fan_get_rpm_actual(0) == FAN_RPM(0)->rpm_max);
+ /* With nothing else to do, fans default to CONFIG_FAN_INIT_SPEED*/
+ TEST_ASSERT(fan_get_rpm_actual(0) ==
+ fan_percent_to_rpm(0, CONFIG_FAN_INIT_SPEED));
set_thermal_control_enabled(0, 1);