diff --git a/device/accton/x86_64-accton_as7326_56x-r0/plugins/sfputil.py b/device/accton/x86_64-accton_as7326_56x-r0/plugins/sfputil.py index 0292e2d52e..b88536ecfe 100644 --- a/device/accton/x86_64-accton_as7326_56x-r0/plugins/sfputil.py +++ b/device/accton/x86_64-accton_as7326_56x-r0/plugins/sfputil.py @@ -175,12 +175,13 @@ class SfpUtil(SfpUtilBase): eeprom.seek(93) lpmode = ord(eeprom.read(1)) - if ((lpmode & 0x3) == 0x1): - return False # High Power Mode if "Power override" bit is 1 and "Power set" bit is 0 + if ((lpmode & 0x3) == 0x3): + return True # Low Power Mode if "Power override" bit is 1 and "Power set" bit is 1 else: - return True # Low Power Mode if one of the following conditions is matched: - # 1. Power override" bit is 0 - # 2. Power override" bit is 1 and "Power set" bit is 1 + return False # High Power Mode if one of the following conditions is matched: + # 1. "Power override" bit is 0 + # 2. "Power override" bit is 1 and "Power set" bit is 0 + except IOError as e: print "Error: unable to open file: %s" % str(e) return False