mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
sometimes still get valid read when scanning is disabled
This commit is contained in:
parent
47e42d3f32
commit
14042e4021
@ -452,6 +452,12 @@ ipmi_sdr_print_sensor_full(struct ipmi_intf * intf,
|
||||
/* Sensor Scanning Disabled
|
||||
* not an error condition so return 0 */
|
||||
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user