corrected state transition in WAIT FOR REPLY state.
This commit is contained in:
@@ -881,6 +881,7 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t *mstp_port)
|
|||||||
mstp_port->ReceivedInvalidFrame = false;
|
mstp_port->ReceivedInvalidFrame = false;
|
||||||
mstp_port->master_state =
|
mstp_port->master_state =
|
||||||
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
||||||
|
transition_now = true;
|
||||||
} else if (mstp_port->ReceivedValidFrame == true) {
|
} else if (mstp_port->ReceivedValidFrame == true) {
|
||||||
if (mstp_port->DestinationAddress ==
|
if (mstp_port->DestinationAddress ==
|
||||||
mstp_port->This_Station) {
|
mstp_port->This_Station) {
|
||||||
@@ -918,8 +919,8 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t *mstp_port)
|
|||||||
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
|
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
|
||||||
}
|
}
|
||||||
mstp_port->ReceivedValidFrame = false;
|
mstp_port->ReceivedValidFrame = false;
|
||||||
|
transition_now = true;
|
||||||
}
|
}
|
||||||
transition_now = true;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/* The DONE_WITH_TOKEN state either sends another data frame, */
|
/* The DONE_WITH_TOKEN state either sends another data frame, */
|
||||||
|
|||||||
@@ -881,6 +881,7 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t *mstp_port)
|
|||||||
mstp_port->ReceivedInvalidFrame = false;
|
mstp_port->ReceivedInvalidFrame = false;
|
||||||
mstp_port->master_state =
|
mstp_port->master_state =
|
||||||
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
||||||
|
transition_now = true;
|
||||||
} else if (mstp_port->ReceivedValidFrame == true) {
|
} else if (mstp_port->ReceivedValidFrame == true) {
|
||||||
if (mstp_port->DestinationAddress ==
|
if (mstp_port->DestinationAddress ==
|
||||||
mstp_port->This_Station) {
|
mstp_port->This_Station) {
|
||||||
@@ -918,8 +919,8 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t *mstp_port)
|
|||||||
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
|
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
|
||||||
}
|
}
|
||||||
mstp_port->ReceivedValidFrame = false;
|
mstp_port->ReceivedValidFrame = false;
|
||||||
|
transition_now = true;
|
||||||
}
|
}
|
||||||
transition_now = true;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
/* The DONE_WITH_TOKEN state either sends another data frame, */
|
/* The DONE_WITH_TOKEN state either sends another data frame, */
|
||||||
|
|||||||
Reference in New Issue
Block a user