mirror of
https://opendev.org/x/pyghmi
synced 2026-05-08 01:37:19 +00:00
Update decode of HDD OEM events for Lenovo
The specification actually only has the lower 5 bits refer to the slot number. Mask out the upper three bits to be accurate. Change-Id: I654f7a96ad1ae2fd18430ca73aa33b30ce80a8e2
This commit is contained in:
@@ -32,7 +32,7 @@ class OEMHandler(generic.OEMHandler):
|
||||
if (event['event_type_byte'] == 0x6f and
|
||||
(evdata[0] & 0b11000000) == 0b10000000 and
|
||||
event['component_type_id'] == 13):
|
||||
event['component'] += ' {0}'.format(evdata[1])
|
||||
event['component'] += ' {0}'.format(evdata[1] & 0b11111)
|
||||
|
||||
def process_fru(self, fru):
|
||||
if fru is None:
|
||||
|
||||
Reference in New Issue
Block a user