Skip to content

Commit

Permalink
[Credo][Ycable] Replace the hard-coded value with a constant variable…
Browse files Browse the repository at this point in the history
… for readability

Signed-off-by: Xinyu <xinyu0123@gmail.com>
  • Loading branch information
xinyulin committed Sep 15, 2023
1 parent 555464e commit 3ffe78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic_y_cable/credo/y_cable_credo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ def get_firmware_version(self, target):

if status != YCable.MCU_EC_NO_ERROR:
''' should at least return local side fw version if nic is offline'''
if status == 0x1A and (read_side == target):
if status == YCable.MCU_EC_FWUPD_UART_TIMEOUT and (read_side == target):
pass
else:
self.log_error('Get firmware version error (error code:0x%04X)' % (status))
Expand Down

0 comments on commit 3ffe78a

Please sign in to comment.