From 794362580b20dabdf2b533aff21a6238152ed586 Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 5 Sep 2007 23:12:23 +0000 Subject: [PATCH] Corrected bug in WAIT_FOR_REPLY state of MS/TP Master Node. --- bacnet-stack/mstp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bacnet-stack/mstp.c b/bacnet-stack/mstp.c index c252e330..a494460c 100644 --- a/bacnet-stack/mstp.c +++ b/bacnet-stack/mstp.c @@ -799,8 +799,7 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t * mstp_port) } else if (mstp_port->ReceivedValidFrame == true) { if (mstp_port->DestinationAddress == mstp_port->This_Station) { - /* Last Transmitted Frame Type */ - switch (mstp_port->OutputBuffer[2]) { + switch (mstp_port->FrameType) { case FRAME_TYPE_REPLY_POSTPONED: /* ReceivedReplyPostponed */ mstp_port->master_state =