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:
@@ -242,7 +242,9 @@ static void *dlmstp_master_fsm_task(
|
|||||||
}
|
}
|
||||||
if (run_master) {
|
if (run_master) {
|
||||||
if (MSTP_Port.This_Station <= DEFAULT_MAX_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) {
|
} else if (MSTP_Port.This_Station < 255) {
|
||||||
MSTP_Slave_Node_FSM(&MSTP_Port);
|
MSTP_Slave_Node_FSM(&MSTP_Port);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user