Make more sane search
This commit is contained in:
parent
5ce26f2181
commit
80528ff39e
1 changed files with 0 additions and 4 deletions
|
|
@ -112,10 +112,6 @@ def is_usb_serial(path: str) -> bool:
|
|||
)
|
||||
if lower.startswith(usb_prefixes):
|
||||
return True
|
||||
if "usb" in lower:
|
||||
return True
|
||||
if lower.startswith(("/dev/tty", "/dev/cu", "com")):
|
||||
return False
|
||||
# Default to False for unknown paths; caller can include_non_usb to override.
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue