mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-04 22:17:33 +00:00
Move frame length constant
This commit is contained in:
parent
68299379db
commit
a02edcc247
2 changed files with 3 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ func (s *serialPortStruct) writeLoop() {
|
|||
|
||||
func (s *serialPortStruct) readLoop() {
|
||||
s.read = make(chan []byte)
|
||||
b := make([]byte, 80) // Max. frame length according to Hamlib.
|
||||
b := make([]byte, maxSerialFrameLength)
|
||||
for {
|
||||
n, err := s.pty.Master.Read(b)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue