Updated Removed the unused state of MSTP_RECEIVE_STATE_HEADER_CRC. Hopefully this doesn't break too many implementations!
This commit is contained in:
@@ -452,7 +452,6 @@ void MSTP_Receive_Frame_FSM(
|
|||||||
mstp_port->HeaderCRC);
|
mstp_port->HeaderCRC);
|
||||||
mstp_port->DataAvailable = false;
|
mstp_port->DataAvailable = false;
|
||||||
/* don't wait for next state - do it here */
|
/* don't wait for next state - do it here */
|
||||||
/* MSTP_RECEIVE_STATE_HEADER_CRC */
|
|
||||||
if (mstp_port->HeaderCRC != 0x55) {
|
if (mstp_port->HeaderCRC != 0x55) {
|
||||||
/* BadCRC */
|
/* BadCRC */
|
||||||
/* indicate that an error has occurred during the reception of a frame */
|
/* indicate that an error has occurred during the reception of a frame */
|
||||||
@@ -529,10 +528,6 @@ void MSTP_Receive_Frame_FSM(
|
|||||||
mstp_port->receive_state = MSTP_RECEIVE_STATE_IDLE;
|
mstp_port->receive_state = MSTP_RECEIVE_STATE_IDLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
/* In the HEADER_CRC state, the node validates the CRC on the fixed */
|
|
||||||
/* message header. */
|
|
||||||
case MSTP_RECEIVE_STATE_HEADER_CRC:
|
|
||||||
break;
|
break;
|
||||||
/* In the DATA state, the node waits for the data portion of a frame. */
|
/* In the DATA state, the node waits for the data portion of a frame. */
|
||||||
case MSTP_RECEIVE_STATE_DATA:
|
case MSTP_RECEIVE_STATE_DATA:
|
||||||
|
|||||||
Reference in New Issue
Block a user