mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-03 23:39:58 +01:00
Fix byte array send over channel
This commit is contained in:
parent
a812b02321
commit
cac084b67f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue