mirror of
https://github.com/xcat2/confluent.git
synced 2025-03-03 17:51:00 +00:00
also allow users to just specify lom and we use the first port
This commit is contained in:
parent
11d63a4b5c
commit
a595abe9e6
@ -227,6 +227,11 @@ def set_port_xcc(s, port, model):
|
||||
port = b'\x00\x02'
|
||||
else:
|
||||
port = b'\x00\x00'
|
||||
else:
|
||||
if model == '7x58':
|
||||
port = b'\x00\x02'
|
||||
else:
|
||||
port = b'\x00\x00'
|
||||
else:
|
||||
port = port.split(' ')
|
||||
port = bytes(bytearray([int(x) for x in port]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user