summaryrefslogtreecommitdiff
path: root/util/oem_hp.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-03 08:10:39 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-03 08:10:39 +0200
commite3a9bfc89256e939ab1c1f56f6961b6ee15aa84a (patch)
tree5bf7d587f0a399f0ab6aed2fd7abf61d73c0363e /util/oem_hp.c
parente6806f1d217e07f52759e4fa1c792d1fe02f0d50 (diff)
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'util/oem_hp.c')
-rw-r--r--util/oem_hp.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/util/oem_hp.c b/util/oem_hp.c
index 4c5b4f9..b7f7d07 100644
--- a/util/oem_hp.c
+++ b/util/oem_hp.c
@@ -83,10 +83,17 @@ int decode_sensor_hp(uchar *sdr,uchar *reading,char *pstring, int slen)
strncpy(pstring,"na",slen); /*oem*/
rv = 0;
} else {
- if ((reading[2] & 0x40) == 0x40) { /*Init/Unavail state*/
- strncpy(pstring,"Init",slen);
+#ifdef OLD
+ int vend, prod;
+ get_mfgid(&vend,&prod);
+ /* This was an anomaly for an older HP DL380 but is no longer valid */
+ if ((prod == 0x2000) && ((reading[2] & 0x40) == 0x40)) {
+ /*custom Init/Unavail state if DL380*/
+ strncpy(pstring,"Init",slen);
rv = 0;
- } else if (evtype == 0x6f) { /*evtype==0x6f special*/
+ } else
+#endif
+ if (evtype == 0x6f) { /*evtype==0x6f special*/
pstr = "DiscreteEvt";
if (stype == 0x08) { /*Power Supply presence*/
if (reading[2] & 0x01) pstr = "Present";