liurunyu
2024-12-02 36268a2ea052f07ab28b9f1d4d6a654bf4fbbd13
pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/p206V1/parse/global/GlCreate.java
@@ -93,9 +93,9 @@
    }
    public static byte[] createCrcTail4Ug(byte[] bsNoTail) throws Exception {
        short crc = new CRC16().CRC(bsNoTail, 0, bsNoTail.length -1) ;
        short crc = new CRC16().CRC16_table(bsNoTail, 0, bsNoTail.length -1) ;
        byte[] bytes = new byte[ProtocolConstantV206V1.UG_lenTail] ;
        ByteUtil.short2Bytes_BE(bytes, crc, 0);
        ByteUtil.short2Bytes_LE(bytes, crc, 0);
        bytes[2] = ProtocolConstantV206V1.P_Tail_Byte ;
        return bytes ;
    }