summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Gaddi <rgaddi@highlandtechnology.com>2017-03-13 11:30:54 -0700
committerRob Gaddi <rgaddi@highlandtechnology.com>2017-03-13 11:30:54 -0700
commit5c021d4bdab2297602b4459f75bef2e00e5ec9ab (patch)
treec41cff151b6b2183297ff1dea85259e9188873c3
parent7bd427087857ba474180058b727578ca4cec5e2e (diff)
downloadpyserial-git-5c021d4bdab2297602b4459f75bef2e00e5ec9ab.tar.gz
Added Advantech multi-port serial controllers to list_ports_linux glob list.
-rw-r--r--serial/tools/list_ports_linux.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial/tools/list_ports_linux.py b/serial/tools/list_ports_linux.py
index 567df6d..0dfa81f 100644
--- a/serial/tools/list_ports_linux.py
+++ b/serial/tools/list_ports_linux.py
@@ -73,6 +73,7 @@ def comports():
devices.extend(glob.glob('/dev/ttyACM*')) # usb-serial with CDC-ACM profile
devices.extend(glob.glob('/dev/ttyAMA*')) # ARM internal port (raspi)
devices.extend(glob.glob('/dev/rfcomm*')) # BT serial devices
+ devices.extend(glob.glob('/dev/ttyAP*')) # Advantech multi-port serial controllers
return [info
for info in [SysFS(d) for d in devices]
if info.subsystem != "platform"] # hide non-present internal serial ports