Removed forever loop on MS/TP receive for fast processors since the incoming character wait is significantly slower than the processor speed. Thank you Paul!

This commit is contained in:
skarg
2009-12-02 17:59:36 +00:00
parent 38d944d6c9
commit cabe973354
+1 -9
View File
@@ -1221,15 +1221,7 @@ uint16_t dlmstp_receive(
/* only do receive state machine while we don't have a frame */
if ((MSTP_Flag.ReceivedValidFrame == false) &&
(MSTP_Flag.ReceivedInvalidFrame == false)) {
for (;;) {
MSTP_Receive_Frame_FSM();
if (MSTP_Flag.ReceivedValidFrame || MSTP_Flag.ReceivedInvalidFrame)
break;
/* if we are not idle, then we are
receiving a frame or timing out */
if (Receive_State == MSTP_RECEIVE_STATE_IDLE)
break;
}
MSTP_Receive_Frame_FSM();
}
/* only do master state machine while rx is idle */
if (Receive_State == MSTP_RECEIVE_STATE_IDLE) {