Set max. serial frame length

This commit is contained in:
Nonoo 2020-10-25 11:59:46 +01:00
parent f5a0b5e61e
commit f22f1b1ed4

View file

@ -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 {