Added detection of UART ports (/dev/ttymxc*)

This commit is contained in:
Stepan
2021-09-06 18:40:01 +09:00
parent 83a8c96664
commit 9fed730fb2

View File

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