From 2eb42c0c886601143ed90f241a79c45e273c1588 Mon Sep 17 00:00:00 2001 From: NoahLan <6995syu@163.com> Date: Mon, 19 Jun 2023 18:12:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=96=E6=B6=88debug=EF=BC=8C?= =?UTF-8?q?=E5=BE=88=E7=83=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nmodbus/protocol/packer_rtu.go | 3 +-- nmodbus/protocol/packer_tcp.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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