corrected MS/TP new Skip Data states
This commit is contained in:
@@ -627,9 +627,6 @@ static void MSTP_Receive_Frame_FSM(
|
|||||||
MSTP_Flag.ReceivedInvalidFrame = true;
|
MSTP_Flag.ReceivedInvalidFrame = true;
|
||||||
}
|
}
|
||||||
Receive_State = MSTP_RECEIVE_STATE_IDLE;
|
Receive_State = MSTP_RECEIVE_STATE_IDLE;
|
||||||
} else {
|
|
||||||
MSTP_Flag.ReceivedInvalidFrame = true;
|
|
||||||
Receive_State = MSTP_RECEIVE_STATE_IDLE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1207,7 +1204,9 @@ uint16_t dlmstp_receive(
|
|||||||
(MSTP_Flag.ReceivedInvalidFrame == false)) {
|
(MSTP_Flag.ReceivedInvalidFrame == false)) {
|
||||||
MSTP_Receive_Frame_FSM();
|
MSTP_Receive_Frame_FSM();
|
||||||
}
|
}
|
||||||
/* only do master state machine while rx is idle */
|
if (MSTP_Flag.ReceivedValidFrameNotForUs) {
|
||||||
|
MSTP_Flag.ReceivedValidFrameNotForUs = false;
|
||||||
|
}
|
||||||
if (Receive_State == MSTP_RECEIVE_STATE_IDLE) {
|
if (Receive_State == MSTP_RECEIVE_STATE_IDLE) {
|
||||||
while (MSTP_Master_Node_FSM()) {
|
while (MSTP_Master_Node_FSM()) {
|
||||||
/* do nothing while some states fast transition */
|
/* do nothing while some states fast transition */
|
||||||
|
|||||||
Reference in New Issue
Block a user