Commit 320a5f2a9290402f7da809ada59ef3ee1fe24432

Con Kolivas 2011-09-03T14:52:25

Make sure to read off the value in RPM only.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/adl.c b/adl.c
index d2a9317..3310204 100644
--- a/adl.c
+++ b/adl.c
@@ -295,6 +295,7 @@ int gpu_fanspeed(int gpu)
 	ga = &gpus[gpu].adl;
 	if (!(ga->lpFanSpeedInfo.iFlags & (ADL_DL_FANCTRL_SUPPORTS_RPM_READ | ADL_DL_FANCTRL_SUPPORTS_PERCENT_READ )))
 		return 0;
+	ga->lpFanSpeedValue.iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM;
 	if (ADL_Overdrive5_FanSpeed_Get(ga->iAdapterIndex, 0, &ga->lpFanSpeedValue) != ADL_OK)
 		return 0;
 	return ga->lpFanSpeedValue.iFanSpeed;