Skip to content

Commit 9bb6eb1

Browse files
committed
USB PID:VID is lowercase hex address on Linux and uppercase on Windows. Convert to lower to work on both
1 parent 21caa7a commit 9bb6eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoSerial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def matches(text, regex):
3030
def is_recognised_device(p):
3131
port, name, desc = p
3232
for d in known_devices.keys():
33-
if matches(desc, d): # match on VID
33+
if matches(desc.lower(), d.lower()): # match on VID
3434
return known_devices[d] # return name
3535
return None
3636

0 commit comments

Comments
 (0)