Fixed Linux datalink call to Master Node FSM which was not doing immediate transitions, and could lose whole messages. Thank you, Nikola Jelic!

This commit is contained in:
skarg
2011-09-02 14:35:16 +00:00
parent 8e253e8545
commit 9f0dfeed1c
+3 -1
View File
@@ -242,7 +242,9 @@ static void *dlmstp_master_fsm_task(
}
if (run_master) {
if (MSTP_Port.This_Station <= DEFAULT_MAX_MASTER) {
MSTP_Master_Node_FSM(&MSTP_Port);
while (MSTP_Master_Node_FSM (&MSTP_Port)) {
/* do nothing while immediate transitioning */
}
} else if (MSTP_Port.This_Station < 255) {
MSTP_Slave_Node_FSM(&MSTP_Port);
}