Fixed MS/TP zero-config FSM getting stuck when duplicate address is detected. (#1048)
This commit is contained in:
@@ -641,6 +641,7 @@ bool MSTP_Master_Node_FSM(struct mstp_port_struct_t *mstp_port)
|
||||
(mstp_port->ReceivedValidFrame == true) &&
|
||||
(mstp_port->SourceAddress == mstp_port->This_Station)) {
|
||||
/* DuplicateNode */
|
||||
mstp_port->This_Station = 255;
|
||||
mstp_port->Zero_Config_State = MSTP_ZERO_CONFIG_STATE_INIT;
|
||||
mstp_port->master_state = MSTP_MASTER_STATE_INITIALIZE;
|
||||
/* ignore the frame */
|
||||
|
||||
Reference in New Issue
Block a user