diff --git a/dtu/conn.go b/dtu/conn.go index d0f7abb924243b66cb14a2705984bf8d6c8bb1e3..c48772f1faee3f914880cb60e256bf0de0f6974a 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 {