fix: handle lowercase com addresses
Some checks failed
App Builder / build (ubuntu-latest) (push) Has been cancelled
App Builder / build (windows-latest) (push) Has been cancelled
App Builder / Deploy (push) Has been cancelled
App Builder / Cleanup actions (push) Has been cancelled

This commit is contained in:
Prohurtz 2025-06-22 16:54:37 -05:00
parent ab441f2ce0
commit 9f8b632dec

View File

@ -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
) )