2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-16 19:34:21 +00:00

Update to new form of get gpio command

A firmware update changes the reply and has us lose
track of a water cooled chassis.  Support either form of
the reply that may be water cooled.

Change-Id: I94e0b411b1d93caa07387339c2a0655f52621daa
This commit is contained in:
Jarrod Johnson
2021-06-02 12:10:35 -04:00
parent 6e2bdb2d7d
commit 614b326532
+1 -1
View File
@@ -427,7 +427,7 @@ class SMMClient(object):
settings[rule] = {'value': int(ruleinfo.text)}
dwc = self.ipmicmd.xraw_command(0x32, 0x94)
dwc = bytearray(dwc['data'])
if len(dwc) != 3 or dwc[0] == 1:
if len(dwc) not in (3, 4) or dwc[0] == 1:
rsp = self.ipmicmd.xraw_command(0x34, 3)
fanmode = self.fanmodes[bytearray(rsp['data'])[0]]
settings['fanspeed'] = {