From 4cc831e19211fe5153ff5c9ff78851db4a4711f1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sun, 12 Mar 2017 21:23:58 +0100 Subject: [PATCH] Some serial constants replaced by sys/unix package --- serial_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serial_linux.go b/serial_linux.go index d05287c..c8f5927 100644 --- a/serial_linux.go +++ b/serial_linux.go @@ -55,10 +55,10 @@ var databitsMap = map[int]uint32{ 8: unix.CS8, } -const tcCMSPAR uint32 = 0 // may be CMSPAR or PAREXT +const tcCMSPAR = unix.CMSPAR const tcIUCLC = unix.IUCLC -const tcCRTSCTS uint32 = 0x80000000 +const tcCRTSCTS uint32 = unix.CRTSCTS const ioctlTcgetattr = unix.TCGETS const ioctlTcsetattr = unix.TCSETS