From aed54522793109d185a5863c31112f17bff5ea0d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 28 Apr 2014 11:20:55 -0400 Subject: [PATCH] Correct sensor offset for byte 5 state values Code was erroneously adding 7 instead of 8. Correct this mistake. Change-Id: I5a62c8c63e3a88b3150d0d67850ea0d339707295 --- pyghmi/ipmi/sdr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/sdr.py b/pyghmi/ipmi/sdr.py index 8dffe5d9..c48b7544 100644 --- a/pyghmi/ipmi/sdr.py +++ b/pyghmi/ipmi/sdr.py @@ -427,7 +427,7 @@ class SDREntry(object): if len(reading) > 3: for state in range(7): if reading[3] & (0b1 << state): - statedesc, health = self._decode_state(state + 7) + statedesc, health = self._decode_state(state + 8) output['health'] |= health output['states'].append(statedesc) else: