Added missing fix for sensors that use event data 2 when using command ipmitool sdr elist

This commit is contained in:
Marie-Josee Blais 2010-06-17 17:22:33 +00:00
parent 799a0846c2
commit 2a180f8038

View File

@ -1613,7 +1613,8 @@ ipmi_sdr_print_discrete_state_mini(const char *separator,
}
for (; evt->type != NULL; evt++) {
if (evt->code != typ)
if ((evt->code != typ) ||
(evt->data != 0xFF))
continue;
if (evt->offset > 7) {