From 99bf09fbc855590e209dda4cd2b6c725101cbe9c Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 26 七月 2024 14:39:43 +0800
Subject: [PATCH] 1、完善代码,把开关阀类型编码改为BCD码; 2、制定并实现协议“定时关阀计划开阀(A1H)”和“定量关阀计划开阀(A2H)”.

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3A_Down.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3A_Down.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3A_Down.java
index b546e74..fb9367e 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3A_Down.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1_0_0/parse/Cd_3A_Down.java
@@ -96,8 +96,8 @@
             byte[] bs = new byte[11];
             Double currentDb = cvo.current * 100;
             Integer currentInt = currentDb.intValue();
-            ByteUtilUnsigned.int2Bytes_LE(bs, currentInt.shortValue(), index);
-            index += 3;//涓婇潰鏄笁byte鐨勬暟鍊�
+            ByteUtilUnsigned.short2Bytes_LE(bs, currentInt.shortValue(), index);
+            index += 2;//涓婇潰鏄袱瀛楄妭鏁板��
             GlCreate.createPw(bs, index);
             index += 2;
             GlCreate.createTp(bs, index);

--
Gitblit v1.8.0