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.
Fork of mbed-os-example-ble-LED by
Diff: source/main.cpp
- Revision:
- 24:0770ad9edb2d
- Parent:
- 23:46aad4b5185f
- Child:
- 25:b08a7d2c30b6
diff -r 46aad4b5185f -r 0770ad9edb2d source/main.cpp --- a/source/main.cpp Mon Apr 03 14:47:34 2017 +0000 +++ b/source/main.cpp Mon Apr 03 18:44:40 2017 +0000 @@ -68,6 +68,7 @@ rcv[i++] = (char)c; c = UARTServicePtr->_getc(); } + rcv[UARTServicePtr->BLE_UART_SERVICE_MAX_DATA_LEN-1] = '\0'; printf("%s\r\n", rcv); check_command(rcv); }