private void RestoreDefaultFanSpeed() { if (restoreDefaultFanSpeedRequired) { ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ref this.initialFanSpeedValue); restoreDefaultFanSpeedRequired = false; } }
private void SoftwareControlValueChanged(IControl control) { if (control.ControlMode == ControlMode.Software) { ADLFanSpeedValue adlf = new ADLFanSpeedValue(); adlf.SpeedType = ADL.ADL_DL_FANCTRL_SPEED_TYPE_PERCENT; adlf.Flags = ADL.ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED; adlf.FanSpeed = (int)control.SoftwareValue; ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ref adlf); } }
private void RestoreDefaultFanSpeed() { if (restoreDefaultFanSpeedRequired) { ADL.ADL_Overdrive5_FanSpeed_Set(adapterIndex, 0, ref this.initialFanSpeedValue); if ((initialFanSpeedValue.Flags & ADL.ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED) == 0) { ADL.ADL_Overdrive5_FanSpeedToDefault_Set(adapterIndex, 0); } restoreDefaultFanSpeedRequired = false; } }