From b585b21c14c5c9acb369b65128d3b0003e43a7ab Mon Sep 17 00:00:00 2001 From: Tarmigan Casebolt Date: Thu, 21 Apr 2011 11:09:55 -0700 Subject: [PATCH] Gofix --- serial_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial_posix.go b/serial_posix.go index bcd1f31..3f081a7 100644 --- a/serial_posix.go +++ b/serial_posix.go @@ -21,7 +21,7 @@ func (e SError) String() string { } func OpenPort(name string, baud int) (rwc io.ReadWriteCloser, err os.Error) { - f, err := os.Open(name, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK, 0666) + f, err := os.OpenFile(name, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK, 0666) if err != nil { return }