Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed-dev-bin nRF51822-bluetooth-mdw
Fork of microbit-dal by
Diff: source/bluetooth/MicroBitUARTService.cpp
- Revision:
- 29:62f8b007debf
- Parent:
- 8:ec4465853952
- Child:
- 58:2ac8d45f1b08
diff -r 379e18ebd43b -r 62f8b007debf source/bluetooth/MicroBitUARTService.cpp
--- a/source/bluetooth/MicroBitUARTService.cpp Wed Jul 13 12:18:06 2016 +0100
+++ b/source/bluetooth/MicroBitUARTService.cpp Wed Jul 13 12:18:07 2016 +0100
@@ -67,6 +67,8 @@
*/
MicroBitUARTService::MicroBitUARTService(BLEDevice &_ble, uint8_t rxBufferSize, uint8_t txBufferSize) : ble(_ble)
{
+ rxBufferSize += 1;
+ txBufferSize += 1;
txBuffer = (uint8_t *)malloc(txBufferSize);
rxBuffer = (uint8_t *)malloc(rxBufferSize);
