mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
- Re-enable SDR reading for non-ipmb devices
This commit is contained in:
parent
3e2211dc47
commit
fab9a60f71
@ -464,8 +464,8 @@ ipmi_sdr_get_sensor_reading_ipmb(struct ipmi_intf *intf, uint8_t sensor,
|
||||
struct ipmi_rs *rsp;
|
||||
uint8_t save_addr;
|
||||
|
||||
// if ((strncmp(intf->name, "ipmb", 4)) != 0)
|
||||
// return ipmi_sdr_get_sensor_reading(intf, sensor);
|
||||
if ((strncmp(intf->name, "ipmb", 4)) != 0)
|
||||
return ipmi_sdr_get_sensor_reading(intf, sensor);
|
||||
|
||||
save_addr = intf->target_addr;
|
||||
intf->target_addr = target;
|
||||
@ -1144,6 +1144,8 @@ ipmi_sdr_print_sensor_full(struct ipmi_intf *intf,
|
||||
memset(desc, 0, sizeof (desc));
|
||||
snprintf(desc, (sensor->id_code & 0x1f) + 1, "%s", sensor->id_string);
|
||||
|
||||
printf("ipmi_sdr_print_sensor_full\n");
|
||||
|
||||
/* get sensor reading */
|
||||
rsp = ipmi_sdr_get_sensor_reading_ipmb(intf, sensor->keys.sensor_num,
|
||||
sensor->keys.owner_id, sensor->keys.lun);
|
||||
|
Loading…
x
Reference in New Issue
Block a user