Skip to content

Commit 528cb79

Browse files
author
Jostar Yang
committed
Fix read cpld_version from hex to dec.
1 parent 13a1238 commit 528cb79

File tree

1 file changed

+1
-1
lines changed
  • device/accton/x86_64-accton_as4630_54pe-r0/sonic_platform

1 file changed

+1
-1
lines changed

device/accton/x86_64-accton_as4630_54pe-r0/sonic_platform/component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __get_cpld_version(self):
7070
try:
7171
cpld_path = "{}{}{}".format(SYSFS_PATH, CPLD_ADDR_MAPPING[cpld_name], '/version')
7272
cpld_version_raw= self._api_helper.read_txt_file(cpld_path)
73-
cpld_version[cpld_name] = "{}".format(int(cpld_version_raw,16))
73+
cpld_version[cpld_name] = "{}".format(int(cpld_version_raw,10))
7474
except Exception as e:
7575
print('Get exception when read cpld')
7676
cpld_version[cpld_name] = 'None'

0 commit comments

Comments
 (0)