mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Minor edit
This commit is contained in:
parent
55ba0911fb
commit
f17a3a2233
1 changed files with 1 additions and 1 deletions
2
SPP.cpp
2
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;
|
||||
|
|
Loading…
Reference in a new issue