High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
20:c6ceaa206674
Parent:
17:9eb2b6fbbda9
Child:
23:f19c60478e1b
--- 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 */