mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: handle lowercase com addresses
This commit is contained in:
parent
ab441f2ce0
commit
9f8b632dec
@ -70,8 +70,9 @@ def is_serial_capture_source(addr: str) -> bool:
|
|||||||
"""
|
"""
|
||||||
Returns True if the capture source address is a serial port.
|
Returns True if the capture source address is a serial port.
|
||||||
"""
|
"""
|
||||||
|
addr_upper = addr.upper()
|
||||||
return (
|
return (
|
||||||
addr.startswith("COM") or addr.startswith("/dev/cu") or addr.startswith("/dev/tty") # Windows # macOS # Linux
|
addr_upper.startswith("COM") or addr.startswith("/dev/cu") or addr.startswith("/dev/tty") # Windows # macOS # Linux
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user