protected void SetFanAuto() { ThreadPool.QueueUserWorkItem(p => { CallingVariations.SetFANDutyAuto(1); UpdateFanStateFromEc(); }); }
protected void UpdateFanStateFromEc() { // FAN var rawCpuRpm = CallingVariations.GetCPUFANRPM(); currentRpms = CalculateRpms(rawCpuRpm); // CPU var ecData = CallingVariations.GetTempFanDuty(1); currentTemp = ecData.Local; lastFanCuty = (int)Math.Round(ecData.FanDuty / 2.55m); }
protected void SetFanManual(decimal fanDuty) { ThreadPool.QueueUserWorkItem(p => { CallingVariations.SetFanDuty(1, (int)(255 * fanDuty)); for (var i = 0; i < 3; i++) { Thread.Sleep(500); UpdateFanStateFromEc(); } }); }
private void UpdateFanStateFromEc() { // FAN var rawCpuRpm = CallingVariations.GetCPUFANRPM(); m_currentRpms = CalculateRpms(rawCpuRpm); // CPU var ecData = CallingVariations.GetTempFanDuty(1); m_currentTemp = ecData.Local; m_fanDutyRead = (int)Math.Round(ecData.FanDuty / 2.55m); }
private void SetFanDutyToEc(int percentage) { var fanDutyIn256 = (int)Math.Round(percentage / 100.0m * 255.0m); CallingVariations.SetFanDuty(1, fanDutyIn256); }