diff --git a/src/sensor.hpp b/src/sensor.hpp index 9f092c6..e48036a 100644 --- a/src/sensor.hpp +++ b/src/sensor.hpp @@ -265,10 +265,18 @@ struct Sensor sensorInterface->register_property("Unit", unit); sensorInterface->register_property("MaxValue", maxValue); sensorInterface->register_property("MinValue", minValue); + //Allows external overwrite DIMM temperature + if(sensorInterface->get_object_path().find("DIMM_CPU") != std::string::npos ){ + sensorInterface->register_property( + "Value", value, [this](const double& newValue, double& oldValue) { + oldValue=newValue;return true; + }); + }else{ sensorInterface->register_property( "Value", value, [this](const double& newValue, double& oldValue) { return setSensorValue(newValue, oldValue); }); + } fillMissingThresholds();