From a58749c104b74d03557223c841a05a3b9537b2dd Mon Sep 17 00:00:00 2001 From: Michal Horn Date: Wed, 14 Aug 2013 17:22:38 +0200 Subject: [PATCH] Bug that allowed transmission on RX buffer repaired. This was not fatal error, RX buffers can not transfer anything, but it was not right. --- rpp/src/drv/fr_tms570.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpp/src/drv/fr_tms570.c b/rpp/src/drv/fr_tms570.c index 786a6f0..b5c7378 100644 --- a/rpp/src/drv/fr_tms570.c +++ b/rpp/src/drv/fr_tms570.c @@ -1062,7 +1062,7 @@ Std_ReturnType Fr_TransmitTxLPdu(uint8_t Fr_CtrlIdx, uint16_t Fr_LPduIdx, const /* Find the index of the buffer in configuration data array */ for (bufferIndex = 0; bufferIndex < FR_MAX_BUFFERS_CNT; bufferIndex++) { if (Fr_BuffersPtrs[bufferIndex]->slotId == Fr_LPduIdx) { - if (Fr_BuffersConfigured[bufferIndex] == TRUE) { // Buffer was configured already + if (Fr_BuffersConfigured[bufferIndex] == TRUE && Fr_BuffersPtrs[bufferIndex]->isTx == TRUE) { // Buffer was configured already and is TX for (word = 0; word < (Fr_LSduLength+3)/4; word++) { buffer = 0; for (byte = 0; byte < 4; byte++) { -- 2.39.2