From 9fed730fb289a5f66992aeed23582d14ebcd26e3 Mon Sep 17 00:00:00 2001 From: Stepan Date: Mon, 6 Sep 2021 18:40:01 +0900 Subject: [PATCH] Added detection of UART ports (/dev/ttymxc*) --- serial_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial_linux.go b/serial_linux.go index e4a2d45..1d6edb3 100644 --- a/serial_linux.go +++ b/serial_linux.go @@ -9,7 +9,7 @@ package serial import "golang.org/x/sys/unix" const devFolder = "/dev" -const regexFilter = "(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm|ttyO)[0-9]{1,3}" +const regexFilter = "(ttyS|ttyUSB|ttyACM|ttyAMA|rfcomm|ttyO|ttymxc)[0-9]{1,3}" // termios manipulation functions