Fix byte array send over channel

This commit is contained in:
Nonoo 2020-10-28 22:15:54 +01:00
parent a812b02321
commit cac084b67f

View file

@ -79,9 +79,9 @@ func (s *serialTCPSrv) loop() {
writeErrChan := make(chan error)
go s.writeLoop(writeErrChan)
b := make([]byte, maxSerialFrameLength)
connected := true
for connected {
b := make([]byte, maxSerialFrameLength)
n, err := s.client.Read(b)
if err != nil {
break