소스 검색

changed the way sensor ids are generated

Malte Veerman 5 년 전
부모
커밋
d7304f0eff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      import/src/sensor.cpp

+ 1 - 1
import/src/sensor.cpp

@@ -34,7 +34,7 @@ Sensor::Sensor(Hwmon *parent, uint index, const QString &type, bool device) : QO
     if (!parent)
         return;
 
-    m_id = device ? parent->name() + "/device/" + type + QString::number(index) : parent->name() + "/" + type + QString::number(index);
+    m_id = QStringLiteral("hwmon") + parent->index() + "/" + type + QString::number(index);
 
     connect(this, &Sensor::error, parent, &Hwmon::error);
 }