summaryrefslogtreecommitdiff
path: root/debian/patches/20_ipmi_sdr
diff options
context:
space:
mode:
authorMatthew Johnson <mjj29@adonis.trinhall.cam.ac.uk>2009-03-22 16:45:03 +0000
committerMatthew Johnson <mjj29@adonis.trinhall.cam.ac.uk>2009-03-22 16:45:03 +0000
commitc046fdc3b05cb15bc8e599dd9c8604a847c84707 (patch)
tree3c08a8c39f7b81166e096165e158547555d244e5 /debian/patches/20_ipmi_sdr
parenta30edbecd81e8f5641c6be9397b2e93358b1d72d (diff)
switch to quilt
Diffstat (limited to 'debian/patches/20_ipmi_sdr')
-rw-r--r--debian/patches/20_ipmi_sdr19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/20_ipmi_sdr b/debian/patches/20_ipmi_sdr
new file mode 100644
index 0000000..dcb8c23
--- /dev/null
+++ b/debian/patches/20_ipmi_sdr
@@ -0,0 +1,19 @@
+## 20_ipmi_sdr.dpatch by Cyril Brulebois <cyril.brulebois@kerlabs.com>
+##
+## Enable reading temperatures again (Closes: #507760).
+--- 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]);