py-octoprint: also look for the default USB serial ports on NetBSD

This commit is contained in:
Pierre Pronchery 2021-01-03 21:13:20 +01:00
parent 853bf0341f
commit b5d56e1ee0
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
$NetBSD$
Also look for the default USB serial ports on NetBSD
--- src/octoprint/util/comm.py.orig 2020-12-10 11:34:21.000000000 +0000
+++ src/octoprint/util/comm.py
@@ -211,6 +211,7 @@ def serialList():
+ glob.glob("/dev/cu.*")
+ glob.glob("/dev/cuaU*")
+ glob.glob("/dev/ttyS*")
+ + glob.glob("/dev/ttyU*")
+ glob.glob("/dev/rfcomm*")
)