mirror of
https://github.com/xcat2/confluent.git
synced 2025-09-17 23:58:12 +00:00
also allow users to just specify lom and we use the first port
This commit is contained in:
@@ -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]))
|
||||
|
Reference in New Issue
Block a user