Clarified some comments.
This commit is contained in:
@@ -715,16 +715,18 @@ bool MSTP_Master_Node_FSM(
|
|||||||
mstp_port->FrameCount++;
|
mstp_port->FrameCount++;
|
||||||
switch (frame_type) {
|
switch (frame_type) {
|
||||||
case FRAME_TYPE_BACNET_DATA_EXPECTING_REPLY:
|
case FRAME_TYPE_BACNET_DATA_EXPECTING_REPLY:
|
||||||
/* SendAndWait */
|
|
||||||
if (destination == MSTP_BROADCAST_ADDRESS) {
|
if (destination == MSTP_BROADCAST_ADDRESS) {
|
||||||
|
/* SendNoWait */
|
||||||
mstp_port->master_state =
|
mstp_port->master_state =
|
||||||
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
MSTP_MASTER_STATE_DONE_WITH_TOKEN;
|
||||||
} else {
|
} else {
|
||||||
|
/* SendAndWait */
|
||||||
mstp_port->master_state =
|
mstp_port->master_state =
|
||||||
MSTP_MASTER_STATE_WAIT_FOR_REPLY;
|
MSTP_MASTER_STATE_WAIT_FOR_REPLY;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case FRAME_TYPE_TEST_REQUEST:
|
case FRAME_TYPE_TEST_REQUEST:
|
||||||
|
/* SendAndWait */
|
||||||
mstp_port->master_state =
|
mstp_port->master_state =
|
||||||
MSTP_MASTER_STATE_WAIT_FOR_REPLY;
|
MSTP_MASTER_STATE_WAIT_FOR_REPLY;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user