Commit f7fcd292 authored by Adam Blank's avatar Adam Blank
Browse files

Update ports.py

parent 2d75bb98
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -14,7 +14,7 @@ CTRL_C_SUB = bytes(0x7F)
def get_trinkey_port():
ports = serial.tools.list_ports.comports()
for port, desc, hwid in sorted(serial.tools.list_ports.comports()):
for port, desc, hwid in sorted(ports):
if 'Trinkey' in desc or '239A' in desc.upper() or '239A' in hwid.upper():
s = serial.Serial(port, baudrate=1152000)
return s
......
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