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;