We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a2ab19 commit 879a33eCopy full SHA for 879a33e
zdecoder/htlvcrcdecoder.go
@@ -81,7 +81,7 @@ func (hcd *HtlvCrcDecoder) GetLengthField() *ziface.LengthField {
81
// initialBytesToStrip = 0 (这个0表示完整的协议内容,如果不想要A2,那么这里就是1) 从解码帧中第一次去除的字节数
82
// maxFrameLength = 255 + 4(起始码、功能码、CRC) (len是1个byte,所以最大长度是无符号1个byte的最大值)
83
return &ziface.LengthField{
84
- MaxFrameLength: math.MaxInt8 + 4,
+ MaxFrameLength: math.MaxUint8 + 4,
85
LengthFieldOffset: 2,
86
LengthFieldLength: 1,
87
LengthAdjustment: 2,
0 commit comments