Changed LSB of Bluetoothbuffer length to BULK_MAXPKTSIZE-11 rather than 64

This commit is contained in:
Frederik Juul 2013-03-08 11:52:51 +01:00
parent 6e00fd25d4
commit fb9e53b245

View file

@ -308,7 +308,7 @@ void SPP::ACLData(uint8_t* l2capinbuf) {
rfcommbuf[3] = 0xE0; // Pre difined for Bluetooth, see 5.5.3 of TS 07.10 Adaption for RFCOMM rfcommbuf[3] = 0xE0; // Pre difined for Bluetooth, see 5.5.3 of TS 07.10 Adaption for RFCOMM
rfcommbuf[4] = 0x00; // Priority rfcommbuf[4] = 0x00; // Priority
rfcommbuf[5] = 0x00; // Timer rfcommbuf[5] = 0x00; // Timer
rfcommbuf[6] = 0x40; // Max Fram Size LSB - we will just set this to 64 rfcommbuf[6] = BULK_MAXPKTSIZE-11; // Max Fram Size LSB - set to the size of received data (53)
rfcommbuf[7] = 0x00; // Max Fram Size MSB rfcommbuf[7] = 0x00; // Max Fram Size MSB
rfcommbuf[8] = 0x00; // MaxRatransm. rfcommbuf[8] = 0x00; // MaxRatransm.
rfcommbuf[9] = 0x00; // Number of Frames rfcommbuf[9] = 0x00; // Number of Frames