public bool IS_consistentCheckSumByte() { if (C_CheckSum.GET_checkSum_fromWholePacket(PacketBytes) == 0) { return(true); } else { return(false); } }
//public C_Packet(C_Packet pack): //{ // IdByte = pack.idByte; // lengthByte = pack.lengthByte; //} //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #endregion constructor //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #region REFRESH //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% public void REFRESH_checkSum() { // count checksum from whole cmd byteCheckSum = C_CheckSum.GET_checkSum_fromWholePacket(PacketBytes); }