diff --git a/nmodbus/protocol/packer_rtu.go b/nmodbus/protocol/packer_rtu.go index 1e17407..37fefe7 100644 --- a/nmodbus/protocol/packer_rtu.go +++ b/nmodbus/protocol/packer_rtu.go @@ -6,7 +6,6 @@ import ( "fmt" "git.noahlan.cn/noahlan/nnet/packet" "git.noahlan.cn/noahlan/ntool-biz/nmodbus/util" - "git.noahlan.cn/noahlan/ntool/nlog" ) type RTUPacker struct { @@ -44,7 +43,7 @@ func (d *RTUPacker) Pack(header interface{}, data []byte) ([]byte, error) { func (d *RTUPacker) Unpack(data []byte) ([]packet.IPacket, error) { d.buf.Write(data) - nlog.Debugf("接收RTU数据: %x", data) + //nlog.Debugf("接收RTU数据: %x", data) var ( packets []packet.IPacket diff --git a/nmodbus/protocol/packer_tcp.go b/nmodbus/protocol/packer_tcp.go index 8102fab..6180eaf 100644 --- a/nmodbus/protocol/packer_tcp.go +++ b/nmodbus/protocol/packer_tcp.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "fmt" "git.noahlan.cn/noahlan/nnet/packet" - "git.noahlan.cn/noahlan/ntool/nlog" ) type TCPPackerOption func(*TCPPacker) @@ -56,7 +55,7 @@ func (d *TCPPacker) Pack(header interface{}, data []byte) ([]byte, error) { func (d *TCPPacker) Unpack(data []byte) ([]packet.IPacket, error) { d.buf.Write(data) - nlog.Debugf("接收TCP数据: %x", data) + //nlog.Debugf("接收TCP数据: %x", data) var ( packets []packet.IPacket err error