Skip to content

Commit

Permalink
Change the range of invalid port number
Browse files Browse the repository at this point in the history
  • Loading branch information
roger530-ho committed Mar 21, 2023
1 parent 89ad3bc commit 3f07a79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def reset(self):
A boolean, True if successful, False if not
"""
# Check for invalid port_num
if self.port_num < 49: #Copper port, no sysfs
if self.port_num < 53:
return False

reset_path = "{}{}{}".format(CPLD_I2C_PATH, 'module_reset_', self.port_num)
Expand Down

0 comments on commit 3f07a79

Please sign in to comment.