diff --git a/serial_darwin.go b/serial_darwin.go index 2398ea5..a87458e 100644 --- a/serial_darwin.go +++ b/serial_darwin.go @@ -14,7 +14,7 @@ import ( const devFolder = "/dev" -var osPortFiler = regexp.MustCompile("^(cu|tty)\\..*") +var osPortFilter = regexp.MustCompile("^(cu|tty)\\..*") const ioctlTcgetattr = unix.TIOCGETA const ioctlTcsetattr = unix.TIOCSETA diff --git a/serial_freebsd.go b/serial_freebsd.go index 591dc4b..775b7a6 100644 --- a/serial_freebsd.go +++ b/serial_freebsd.go @@ -14,7 +14,7 @@ import ( const devFolder = "/dev" -var osPortFiler = regexp.MustCompile("^(cu|tty)\\..*") +var osPortFilter = regexp.MustCompile("^(cu|tty)\\..*") // termios manipulation functions diff --git a/serial_openbsd.go b/serial_openbsd.go index 3b396c1..ad5efd0 100644 --- a/serial_openbsd.go +++ b/serial_openbsd.go @@ -14,7 +14,7 @@ import ( const devFolder = "/dev" -var osPortFiler = regexp.MustCompile("^(cu|tty)\\..*") +var osPortFilter = regexp.MustCompile("^(cu|tty)\\..*") // termios manipulation functions