Fixed the ATI GPU fan control. The settings now restore correctly to default settings (previously the "manual mode" was kept on some systems).

This commit is contained in:
Michael Möller 2011-05-14 13:26:09 +00:00
parent bd9495d159
commit a883d4722d

View File

@ -106,6 +106,9 @@ namespace OpenHardwareMonitor.Hardware.ATI {
if (restoreDefaultFanSpeedRequired) { if (restoreDefaultFanSpeedRequired) {
ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0,
ref this.initialFanSpeedValue); ref this.initialFanSpeedValue);
if ((initialFanSpeedValue.Flags &
ADL.ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED) == 0)
ADL.ADL_Overdrive5_FanSpeedToDefault_Set(adapterIndex, 0);
restoreDefaultFanSpeedRequired = false; restoreDefaultFanSpeedRequired = false;
} }
} }