mirror of
https://github.com/xcat2/confluent.git
synced 2026-09-02 15:36:05 +00:00
Read device sensor records without raising on the retry codes
raw_command raises on 0xCA and 0xC5 before the partial read loop can act on them.
This commit is contained in:
@@ -825,7 +825,9 @@ class SDR(object):
|
||||
rqdata = [rsvid & 0xff, rsvid >> 8,
|
||||
recid & 0xff, recid >> 8,
|
||||
offset, size]
|
||||
sdrrec = await self.ipmicmd.raw_command(
|
||||
# Not raw_command: it raises on the completion codes below,
|
||||
# which are the ones this loop exists to act on
|
||||
sdrrec = await self.ipmicmd.oldraw_command(
|
||||
netfn=4, command=0x21, data=rqdata, rslun=lun)
|
||||
if sdrrec['code'] == 0xca:
|
||||
if size == 0xff: # get just 5 to get header to know length
|
||||
|
||||
Reference in New Issue
Block a user