From ca9d1359afeb60ca2dc7215b17535c4bd5e6f274 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期四, 05 二月 2026 10:19:16 +0800
Subject: [PATCH] #

---
 zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
index a0f25df..de4f0f6 100644
--- a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
+++ b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyReleaseToConveyorSta.java
@@ -19,9 +19,16 @@
 
     @Override
     public byte[] writeToBytes() {
-        byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
-        byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
-        return Utils.merge(heightBytes, depthBytes);
+        return Utils.reverse(RadixTools.shortToByte(this.height));
+
+//        byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
+//        byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
+//        return Utils.merge(heightBytes, depthBytes);
+
+//        byte heightByte = (byte) ((this.height == null ? 0 : this.height) & 0xFF);
+//        byte depthByte  = (byte) ((this.depth  == null ? 0 : this.depth)  & 0xFF);
+//        return Utils.merge(heightByte, depthByte);
+//        return new byte[]{ heightByte, depthByte };
     }
 
     @Override

--
Gitblit v1.9.1