浏览代码

Update pwmfan.cpp

Maldela 9 年之前
父节点
当前提交
7a5c0f0458
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      import/src/pwmfan.cpp

+ 2 - 2
import/src/pwmfan.cpp

@@ -220,7 +220,7 @@ bool PwmFan::setPwm(int pwm, bool write)
 
 
         if (write)
         if (write)
         {
         {
-            setPwmEnable(1);
+            setPwmEnable(1, true);
 
 
             if (m_pwmStream->string() || (m_pwmStream->device() && m_pwmStream->device()->isWritable()))
             if (m_pwmStream->string() || (m_pwmStream->device() && m_pwmStream->device()->isWritable()))
                 *m_pwmStream << pwm;
                 *m_pwmStream << pwm;
@@ -366,7 +366,7 @@ void PwmFan::test()
         }
         }
     }
     }
 
 
-    setPwm(255);
+    setPwm(255, true);
 
 
     m_testStatus = FindingStop1;
     m_testStatus = FindingStop1;
     emit testStatusChanged();
     emit testStatusChanged();