mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-06 23:13:45 +00:00
Fix byte array send over channel
This commit is contained in:
parent
a812b02321
commit
cac084b67f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue