From f17a3a2233fcc64e577f31c2e4bdeebff9e50702 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 8 Aug 2012 20:16:03 +0200 Subject: [PATCH] Minor edit --- SPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPP.cpp b/SPP.cpp index 5a155e00..ba793019 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -245,8 +245,8 @@ void SPP::ACLData(uint8_t* l2capinbuf) { /* Read the incoming message */ if(rfcommChannelType == RFCOMM_UIH && rfcommChannel == rfcommChannelConnection) { uint8_t length = l2capinbuf[10] >> 1; // Get length + uint8_t offset = l2capinbuf[4]-length-4; // See if there is credit if(rfcommAvailable + length <= 256) { // Don't add data to buffer if it would be full - uint8_t offset = l2capinbuf[4]-length-4; // See if there is credit for(uint8_t i = 0; i < length; i++) rfcommDataBuffer[rfcommAvailable+i] = l2capinbuf[11+i+offset]; rfcommAvailable += length;