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 BLE_API by
Diff: hw/nrf51822.cpp
- Revision:
- 20:c6ceaa206674
- Parent:
- 17:9eb2b6fbbda9
- Child:
- 23:f19c60478e1b
diff -r a6f33421746c -r c6ceaa206674 hw/nrf51822.cpp
--- a/hw/nrf51822.cpp Wed Dec 18 20:11:45 2013 +0000
+++ b/hw/nrf51822.cpp Thu Dec 19 14:02:49 2013 +0000
@@ -11,7 +11,7 @@
/* ToDo: Check responses and set a flag for success/error/etc. */
/* Read serial to clear the RX interrupt */
- printf("%c", uart.getc());
+ uart.getc();
}
/**************************************************************************/
@@ -174,14 +174,11 @@
/* 2.) Send advertising data, Command ID = 0x000A */
len = advData.getPayloadLen();
buffer = advData.getPayload();
- printf("10 0A 00 %02X", len);
uart.printf("10 0A 00 %02X", len);
for (uint16_t i = 0; i < len; i++)
{
- printf(" %02X", buffer[i]);
uart.printf(" %02X", buffer[i]);
}
- printf("\r\n");
uart.printf("\r\n");
/* ToDo: Check response */
@@ -192,14 +189,11 @@
{
len = scanResponse.getPayloadLen();
buffer = scanResponse.getPayload();
- printf("10 0B 00 %02X", len);
uart.printf("10 0B 00 %02X", len);
for (uint16_t i = 0; i < len; i++)
{
- printf(" %02X", buffer[i]);
uart.printf(" %02X", buffer[i]);
}
- printf("\r\n");
uart.printf("\r\n");
/* ToDo: Check response */
