From 1814ae1d894161db28e15ac918eab6abd38b6c97 Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 3 Feb 2015 22:39:08 +0000 Subject: [PATCH] Fixed MSTP data expecting reply compare, as this port uses raw buffer. Thank you Will. --- bacnet-stack/ports/pic18f6720/mstp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/ports/pic18f6720/mstp.c b/bacnet-stack/ports/pic18f6720/mstp.c index 775cd18a..802c9f7e 100644 --- a/bacnet-stack/ports/pic18f6720/mstp.c +++ b/bacnet-stack/ports/pic18f6720/mstp.c @@ -1151,7 +1151,7 @@ bool MSTP_Master_Node_FSM( matched = mstp_compare_data_expecting_reply(&mstp_port->InputBuffer [0], mstp_port->DataLength, mstp_port->SourceAddress, - &mstp_port->TxBuffer[0], mstp_port->TxLength, + &mstp_port->TxBuffer[8], mstp_port->TxLength, mstp_port->TxDestination); } if (matched && mstp_port->TxReady) {