From f22f1b1ed47c06b87cf222eec00a2b8ed9d93d4c Mon Sep 17 00:00:00 2001 From: Nonoo Date: Sun, 25 Oct 2020 11:59:46 +0100 Subject: [PATCH] Set max. serial frame length --- serial-linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial-linux.go b/serial-linux.go index e611be5..6926b1e 100644 --- a/serial-linux.go +++ b/serial-linux.go @@ -50,7 +50,7 @@ func (s *serialPortStruct) writeLoop() { func (s *serialPortStruct) readLoop() { s.read = make(chan []byte) - b := make([]byte, 1500) + b := make([]byte, 80) // Max. frame length according to Hamlib. for { n, err := s.pty.Master.Read(b) if err != nil {