diff options
Diffstat (limited to 'transport/serial/serial.go')
| -rw-r--r-- | transport/serial/serial.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/transport/serial/serial.go b/transport/serial/serial.go index e3412c5..5e0cb9f 100644 --- a/transport/serial/serial.go +++ b/transport/serial/serial.go @@ -176,8 +176,6 @@ func (c *Conn) ConnectOld(ch chan *meshtastic.FromRadio, ch2 chan *meshtastic.To return nil } -var txtCh = make(chan *meshtastic.MeshPacket) - func (c *Conn) decodeProtos(printDebug bool, ch chan *meshtastic.FromRadio) { for { data, err := readUntilProtobuf(c.serialConn, printDebug) @@ -247,7 +245,7 @@ func readUntilProtobuf(reader io.Reader, printDebug bool) ([]byte, error) { } func (c *Conn) flushPort() error { - flush := make([]byte, 32, 32) + flush := make([]byte, 32) for j := 0; j < len(flush); j++ { flush[j] = START2 } |
