From 67c9b8c40d8b89408e522bc6df7347992dcdd245 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期一, 02 十二月 2024 15:30:01 +0800 Subject: [PATCH] 修改升级协议中的bug,帧长度编码由BCD改为bin --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java index 5d40404..7468ba0 100644 --- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V202404/parse/global/GlCreate.java @@ -148,7 +148,7 @@ public static void createLen4PUg(byte[] bytes) throws Exception { int len = bytes.length - 4; - byte[] bs = ByteUtil.int2BCD_LE(len) ; + byte[] bs = ByteUtil.short2Bytes_LE((short)len) ; if(bs != null && bs.length == 1){ bytes[1] = 0 ; bytes[2] = bs[0] ; -- Gitblit v1.8.0