Skip to content

Commit

Permalink
This should resolve issue #17
Browse files Browse the repository at this point in the history
@AlboProgrammer reported that the description string no longer
contains "USB" but now the make of the Arduino. I've added this
to the autodetect.
  • Loading branch information
berndporr committed Jun 6, 2024
1 parent 1f10d93 commit 967da5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfirmata2/pyfirmata2.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def __init__(self, port, layout=None, baudrate=57600, name=None, timeout=None, d
comports = []
for d in l:
if d.device:
if ("USB" in d.description) or (not d.description):
if ("USB" in d.description) or (not d.description) or ("Arduino" in d.description):
devname = str(d.device)
comports.append(devname)
comports.sort()
Expand Down

0 comments on commit 967da5a

Please sign in to comment.