Cleaned up compiler warning.

This commit is contained in:
skarg
2015-10-17 03:14:40 +00:00
parent 49c52d5407
commit 3b28372e8b
-15
View File
@@ -78,21 +78,6 @@ static struct mstp_flag_t {
unsigned ReceivePacketPending:1;
} MSTP_Flag;
/* data passed to receive handler */
struct mstp_packet_info_t {
/* A Boolean flag set to TRUE by the Receive State Machine */
/* if a valid frame is received. */
unsigned valid_frame:1;
/* preamble flags */
unsigned preamble1:1;
unsigned preamble2:1;
uint8_t header[6]; /* buffer to put the header bytes */
uint8_t *buffer; /* buffer to put the data */
uint8_t buffer_len; /* buffer to put the data */
uint8_t index; /* index into receive buffer */
};
static struct mstp_packet_info_t MSTP_Receive_Packet;
/* Used to store the data length of a received frame. */
static uint16_t DataLength;
/* Used to store the destination address of a received frame. */