mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 11:57:34 +00:00
Acknowledge PET alert on decode
In case a PET emitter wants acknowledgement, submit a PET acknowledge back to the relevant BMC when decoding a PET event. Change-Id: Ifd3038fec2f72161b48bbf7095d2a0e2100b4d91
This commit is contained in:
parent
9e64b16291
commit
275288cf79
@ -447,6 +447,12 @@ class EventHandler(object):
|
||||
sensorid = petdata[28]
|
||||
event_data = petdata[31:34]
|
||||
event = {}
|
||||
seqnum = struct.unpack_from('>H', buffer(petdata[16:18]))
|
||||
ltimestamp = struct.unpack_from('>I', buffer(petdata[18:22]))
|
||||
petack = bytearray(struct.pack('<HIBBBBBB', seqnum, ltimestamp,
|
||||
petdata[25], petdata[27], sensorid,
|
||||
*event_data))
|
||||
self.ipmicmd.xraw_command(netfn=4, command=0x17, data=petack)
|
||||
self._populate_event(deassertion, event, event_data, event_type,
|
||||
sensor_type, sensorid)
|
||||
return event
|
||||
|
Loading…
x
Reference in New Issue
Block a user