Corrected race condition where the MS/TP Master Node FSM may miss the first packet since it may not run until after the first packet has arrived if the ReceivedValidFrame flag is set to false during MSTP_MASTER_STATE_INITIALIZE. Thank you to anand!
This commit is contained in:
@@ -622,8 +622,6 @@ static bool MSTP_Master_Node_FSM(void)
|
||||
/* receives the token */
|
||||
TokenCount = Npoll;
|
||||
MSTP_Flag.SoleMaster = false;
|
||||
MSTP_Flag.ReceivedValidFrame = false;
|
||||
MSTP_Flag.ReceivedInvalidFrame = false;
|
||||
Master_State = MSTP_MASTER_STATE_IDLE;
|
||||
transition_now = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user