summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sensorhandler.cpp4
-rw-r--r--sensorhandler.hpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/sensorhandler.cpp b/sensorhandler.cpp
index 1058230..21677ea 100644
--- a/sensorhandler.cpp
+++ b/sensorhandler.cpp
@@ -625,9 +625,7 @@ void setUnitFieldsForObject(const ipmi::sensor::Info* info,
body->sensor_units_2_base = get_sdr::SENSOR_UNIT_DEGREES_C;
break;
case server::Value::Unit::RPMS:
- body->sensor_units_2_base =
- get_sdr::SENSOR_UNIT_REVOLUTIONS; // revolutions
- get_sdr::body::set_rate_unit(0b100, body); // per minute
+ body->sensor_units_2_base = get_sdr::SENSOR_UNIT_RPM;
break;
case server::Value::Unit::Volts:
body->sensor_units_2_base = get_sdr::SENSOR_UNIT_VOLTS;
diff --git a/sensorhandler.hpp b/sensorhandler.hpp
index b32034f..5e55080 100644
--- a/sensorhandler.hpp
+++ b/sensorhandler.hpp
@@ -548,6 +548,7 @@ enum SensorUnitTypeCodes
SENSOR_UNIT_AMPERES = 5,
SENSOR_UNIT_WATTS = 6,
SENSOR_UNIT_JOULES = 7,
+ SENSOR_UNIT_RPM = 18,
SENSOR_UNIT_METERS = 34,
SENSOR_UNIT_REVOLUTIONS = 41,
};
OpenPOWER on IntegriCloud