2
0
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:
Tinashe 2025-02-25 12:13:18 -05:00
parent 11d63a4b5c
commit a595abe9e6

View File

@ -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]))