mirror of
https://github.com/nonoo/kappanhang.git
synced 2025-12-06 08:02:00 +01:00
Set max. serial frame length
This commit is contained in:
parent
f5a0b5e61e
commit
f22f1b1ed4
|
|
@ -50,7 +50,7 @@ func (s *serialPortStruct) writeLoop() {
|
||||||
|
|
||||||
func (s *serialPortStruct) readLoop() {
|
func (s *serialPortStruct) readLoop() {
|
||||||
s.read = make(chan []byte)
|
s.read = make(chan []byte)
|
||||||
b := make([]byte, 1500)
|
b := make([]byte, 80) // Max. frame length according to Hamlib.
|
||||||
for {
|
for {
|
||||||
n, err := s.pty.Master.Read(b)
|
n, err := s.pty.Master.Read(b)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue