Fixed MS/TP zero-config FSM getting stuck when duplicate address is detected. (#1048)

This commit is contained in:
Steve Karg
2025-07-16 10:04:45 -05:00
committed by GitHub
parent 66bb52e7f0
commit 4f11defc4e
2 changed files with 30 additions and 0 deletions
+1
View File
@@ -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 */