浏览代码

Update pwmfan.cpp

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

+ 1 - 1
import/src/pwmfan.cpp

@@ -88,7 +88,7 @@ PwmFan::PwmFan(Hwmon *parent, uint index) : Fan(parent, index),
             delete pwmFile;
         }
 
-        const auto pwmModeFile = new QFile(parent->path() + "/pwm" + QString::number(index) + "_mode", this);
+        const auto pwmModeFile = new QFile(parent->path() + "/pwm" + QString::number(index) + "_enable", this);
 
         if (pwmModeFile->open(QFile::ReadWrite))
         {