2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 20:27:45 +00:00

Correct sensor offset for byte 5 state values

Code was erroneously adding 7 instead of 8.  Correct this
mistake.

Change-Id: I5a62c8c63e3a88b3150d0d67850ea0d339707295
This commit is contained in:
Jarrod Johnson 2014-04-28 11:20:55 -04:00
parent 9711d1edcf
commit aed5452279

View File

@ -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: