Commit 12cd2c00 authored by Adam Blank's avatar Adam Blank
Browse files

Update ports.py

parent b934e958
No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
...@@ -12,9 +12,10 @@ CTRL_C_SUB = bytes(0x7F) ...@@ -12,9 +12,10 @@ CTRL_C_SUB = bytes(0x7F)
def get_trinkey_port(): def get_trinkey_port():
ports = serial.tools.list_ports.comports() ports = serial.tools.list_ports.comports()
for port, desc, hwid in sorted(ports): for port, desc, hwid in sorted(serial.tools.list_ports.comports()):
if 'Trinkey' in desc: if 'Trinkey' in desc or '239A' in desc.upper():
s = serial.Serial(port, baudrate=1152000) s = serial.Serial(port, baudrate=1152000)
return s return s
return None return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment