2
0
mirror of https://opendev.org/x/pyghmi synced 2026-01-11 18:52:33 +00:00

Fix construction of pet acknowledgement

The change to handle lun in decoding broke
construction of the acknowledgemennt in the PET
path, fix to go back to previous PET handling.

Change-Id: Ib20e67cd9462d846cb3d925a5c8989eef6140e8b
This commit is contained in:
Jarrod Johnson
2021-11-08 07:26:56 -05:00
parent a41f576206
commit 990a526a8d

View File

@@ -486,7 +486,7 @@ class EventHandler(object):
seqnum = struct.unpack_from('>H', buffer(petdata[16:18]))[0]
ltimestamp = struct.unpack_from('>I', buffer(petdata[18:22]))[0]
petack = bytearray(struct.pack('<HIBBBBBB', seqnum, ltimestamp,
petdata[25], petdata[27], sensorid,
petdata[25], petdata[27], petdata[28],
*event_data))
try:
self._ipmicmd.xraw_command(netfn=4, command=0x17, data=petack)