From 1af31e38c6a2cd072ed310149c656780610fe57b Mon Sep 17 00:00:00 2001 From: DELL <1525436766@qq.com> Date: 星期一, 21 四月 2025 08:42:54 +0800 Subject: [PATCH] 2.修复锁具开启之后记录bug --- ElectLock_Monitor/src/com/base/ComBase.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ElectLock_Monitor/src/com/base/ComBase.java b/ElectLock_Monitor/src/com/base/ComBase.java index 1fba823..7d40c00 100644 --- a/ElectLock_Monitor/src/com/base/ComBase.java +++ b/ElectLock_Monitor/src/com/base/ComBase.java @@ -67,6 +67,16 @@ return buff; } + public static ByteBuffer mkInt32Buffer(long value) { + ByteBuffer buff = ByteBuffer.allocate(4); + buff.order(ByteOrder.BIG_ENDIAN); + buff.putShort(ComBase.changeIntToShort(((int)value>>16)&0xFFFF)); + buff.putShort(ComBase.changeIntToShort(((int)value&0xFFFF))); + + buff.flip(); + return buff; + } + public static double GetFDCurrent(double stdcap, int hourrate) { double res = 0.055D; -- Gitblit v1.9.1