diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2018-02-02 07:17:02 -0600 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-02-06 05:19:21 +0000 |
commit | 138e01889a4fb60c80de9b67048a959e8e671516 (patch) | |
tree | c4af965740fabbfb0b7fc1e1c50de75549ce7e08 /dcmihandler.hpp | |
parent | 5c0beec1c30e2702e18359989ed16052ae222767 (diff) | |
download | phosphor-host-ipmid-138e01889a4fb60c80de9b67048a959e8e671516.tar.gz phosphor-host-ipmid-138e01889a4fb60c80de9b67048a959e8e671516.zip |
dcmi: fix max temperature constant
Change the max temperature constant from 128 (degrees C) to 127, because
the temperature is represented with 7 bits (the 8th bit being the sign).
Change-Id: I43d2edf8235ca69a4f31a72949079601c38355b1
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'dcmihandler.hpp')
-rw-r--r-- | dcmihandler.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dcmihandler.hpp b/dcmihandler.hpp index e23c8da..bd2c6e1 100644 --- a/dcmihandler.hpp +++ b/dcmihandler.hpp @@ -50,7 +50,7 @@ namespace temp_readings { static constexpr auto maxDataSets = 8; static constexpr auto maxInstances = 255; - static constexpr auto maxTemp = 128; // degrees C + static constexpr auto maxTemp = 127; // degrees C static constexpr auto configFile = "/usr/share/ipmi-providers/dcmi_temp_readings.json"; |