Updated MS/TP FSM to not reply to Broadcast PFM. Thank you, Iqbal Hassan!

This commit is contained in:
skarg
2018-03-01 00:08:43 +00:00
parent 0185fe0314
commit b0f1107a57
9 changed files with 109 additions and 61 deletions
+5 -2
View File
@@ -741,8 +741,11 @@ static bool MSTP_Master_Node_FSM(
break;
case FRAME_TYPE_POLL_FOR_MASTER:
/* ReceivedPFM */
MSTP_Send_Frame(FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
SourceAddress, This_Station, NULL, 0);
/* DestinationAddress is equal to TS */
if (DestinationAddress == This_Station) {
MSTP_Send_Frame(FRAME_TYPE_REPLY_TO_POLL_FOR_MASTER,
SourceAddress, This_Station, NULL, 0);
}
break;
case FRAME_TYPE_BACNET_DATA_NOT_EXPECTING_REPLY:
/* indicate successful reception to the higher layers */