#cpp //-----------------GET_PACKET()----------------------- short get_packet(int* packet_ptr) { int8 length; int8 CRC; int8 i; packet_ptr[0] = bgetc(); // get the start of text if(packet_ptr[0]!=STX)return FALSE; packet_ptr[1] = bgetc(); // get the position of CRC length = (packet_ptr[1]+2); //length of packet if(length>BUFFER_SIZE)return FALSE; for(i=2; i