static void escape_byte(uint8_t b) // - 9번
{
crc = crc_byte(crc, b);
if (b.Equals(DEF_RF_MSG.SYNC_BYTE) || b.Equals(DEF_RF_MSG.ESCAPE_BYTE))
{
escaped[escapeptr++] = System.Convert.ToByte(DEF_RF_MSG.ESCAPE_BYTE);
escaped[escapeptr++] = System.Convert.ToByte(b ^ 0x20);
}
else
{
escaped[escapeptr++] = System.Convert.ToByte(b);
}
}