Added test in MS/TP datalink for MAC Address in the Master Node range (0-127).

This commit is contained in:
skarg
2011-03-01 23:06:24 +00:00
parent 87f01dce22
commit db95a8d1dc
6 changed files with 100 additions and 86 deletions
+4 -2
View File
@@ -135,8 +135,10 @@ uint16_t dlmstp_receive(
}
/* only do master state machine while rx is idle */
if (MSTP_Port.receive_state == MSTP_RECEIVE_STATE_IDLE) {
while (MSTP_Master_Node_FSM(&MSTP_Port)) {
};
if (This_Station <= DEFAULT_MAX_MASTER) {
while (MSTP_Master_Node_FSM(&MSTP_Port)) {
};
}
}
/* see if there is a packet available */
if (Receive_Buffer.ready) {