diff options
Diffstat (limited to 'debian/patches/20_ipmi_sdr.dpatch')
-rw-r--r-- | debian/patches/20_ipmi_sdr.dpatch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/20_ipmi_sdr.dpatch b/debian/patches/20_ipmi_sdr.dpatch new file mode 100644 index 0000000..4e6ff4f --- /dev/null +++ b/debian/patches/20_ipmi_sdr.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 20_ipmi_sdr.dpatch by Cyril Brulebois <cyril.brulebois@kerlabs.com> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Enable reading temperatures again (Closes: #507760). + +@DPATCH@ + +--- a/lib/ipmi_sdr.c ++++ b/lib/ipmi_sdr.c +@@ -1122,6 +1122,13 @@ + } else if (IS_SCANNING_DISABLED(rsp->data[1])) { + /* Sensor Scanning Disabled */ + validread = 0; ++ if (rsp->data[0] != 0) { ++ /* we might still get a valid reading */ ++ val = sdr_convert_sensor_reading(sensor, ++ rsp->data[0]); ++ if (val != 0.0) ++ validread = 1; ++ } + } else if (rsp->data[0] != 0) { + /* convert RAW reading into units */ + val = sdr_convert_sensor_reading(sensor, rsp->data[0]); |