From 9a9f53ce3a55231bfbe0b0f08f4fd9e191fda3aa Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 28 Aug 2020 07:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dtu/conn.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dtu/conn.go b/dtu/conn.go index d0f7abb..c48772f 100644 --- a/dtu/conn.go +++ b/dtu/conn.go @@ -16,6 +16,9 @@ type Connection struct { Error string Serial string RemoteAddr net.Addr + + Rx int + Tx int conn interface{} @@ -23,8 +26,6 @@ type Connection struct { channel *Channel - Rx int - Tx int } func (c *Connection) checkRegister(buf []byte) error { -- GitLab