From d70f660e08a033da54dc1bb754b09b01aa52b25f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 5 Mar 2024 16:32:06 -0500 Subject: [PATCH] Fix SMM height SMM height failed to trim the leading 4 bits Change-Id: I180a2919002b4cd600f99caa527bdc7ebc43244f --- pyghmi/ipmi/oem/lenovo/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index 32e4d59c..5b5c65f0 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -1191,7 +1191,7 @@ class OEMHandler(generic.OEMHandler): if self.has_xcc: return self.immhandler.get_description() if self.is_fpc: - return {'height': self._fpc_variant, 'slot': 0} + return {'height': self._fpc_variant & 0xf, 'slot': 0} return super(OEMHandler, self).get_description() def get_extended_bmc_configuration(self):