mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 12:17:44 +00:00
Add record id to SEL data
Provide calling code with the identifier number for a particular event. Change-Id: Icc274e5475b7a266c1ff36bdc796197e98256a8c
This commit is contained in:
parent
26942c7860
commit
d6f0a2797a
@ -467,6 +467,7 @@ class EventHandler(object):
|
||||
def _sel_decode(self, origselentry):
|
||||
selentry = bytearray(origselentry)
|
||||
event = {}
|
||||
event['record_id'] = struct.unpack_from('<H', origselentry[:2])[0]
|
||||
if selentry[2] == 2 or (0xc0 <= selentry[2] <= 0xdf):
|
||||
# Either standard, or at least the timestamp is standard
|
||||
event['timecode'] = struct.unpack_from('<I', buffer(selentry[3:7])
|
||||
|
Loading…
x
Reference in New Issue
Block a user