Fix MSTP slave FSM for Data-Expecting-Reply frames (#538)

* Fix MSTP subordinate nodes Data-Expecting-Reply handling

---------

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2023-11-20 19:08:28 -06:00
committed by GitHub
parent 1a55bd7b08
commit e1efca9d9e
5 changed files with 152 additions and 144 deletions
+4 -1
View File
@@ -1309,7 +1309,10 @@ uint16_t dlmstp_receive(BACNET_ADDRESS *src, /* source address */
}
/* if there is a packet that needs processed, do it now. */
if (MSTP_Flag.ReceivePacketPending) {
MSTP_Flag.ReceivePacketPending = false;
if (This_Station <= 127) {
/* master nodes clear immediately */
MSTP_Flag.ReceivePacketPending = false;
}
pdu_len = DataLength;
src->mac_len = 1;
src->mac[0] = SourceAddress;