Explorar o código

changed the way sensor ids are generated

Malte Veerman %!s(int64=5) %!d(string=hai) anos
pai
achega
d7304f0eff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 }