Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/portconfig
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class portconfig(object):
print("Setting speed %s on port %s" % (speed, port))
supported_speeds_str = self.get_supported_speeds(port)
if supported_speeds_str:
if supported_speeds_str.find(str(speed)) == -1:
if str(speed) not in supported_speeds_str.split(","):
print('Invalid speed specified: {}'.format(speed))
print('Valid speeds:{}'.format(supported_speeds_str))
exit(1)
Expand Down