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)
def get_trinkey_port():
ports = serial.tools.list_ports.comports()
for port, desc, hwid in sorted(ports):
if 'Trinkey' in desc:
for port, desc, hwid in sorted(serial.tools.list_ports.comports()):
if 'Trinkey' in desc or '239A' in desc.upper():
s = serial.Serial(port, baudrate=1152000)
return s
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