Added buffer flush methods

+ serial.Port.ResetInputBuffer()
+ serial.Port.ResetOutputBuffer()
This commit is contained in:
Veniamin Albaev
2017-03-09 11:11:06 +03:00
parent 4d886c1028
commit 8b7629bfe1
8 changed files with 48 additions and 0 deletions

View File

@@ -55,3 +55,4 @@ const tcCRTSCTS uint32 = tcCCTS_OFLOW
const ioctlTcgetattr = unix.TIOCGETA
const ioctlTcsetattr = unix.TIOCSETA
const ioctlTcflsh = unix.TIOCFLUSH