mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-06 06:53:38 +00:00
Fix virtual serial port
This commit is contained in:
parent
303012fa56
commit
afa48dc7a0
2 changed files with 4 additions and 4 deletions
|
|
@ -48,8 +48,8 @@ func (s *serialPortStruct) writeLoop() {
|
|||
|
||||
func (s *serialPortStruct) readLoop() {
|
||||
s.read = make(chan []byte)
|
||||
b := make([]byte, maxSerialFrameLength)
|
||||
for {
|
||||
b := make([]byte, maxSerialFrameLength)
|
||||
n, err := s.pty.Master.Read(b)
|
||||
if err != nil {
|
||||
if _, ok := err.(*os.PathError); !ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue