Tema SCPI Negru Rares-Razvan

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_TemperatureEx by Valentin Tanasa

Revision:
5:ee7e1a9e1985
Parent:
4:d7872f84c03c
Child:
6:a574229993b8
diff -r d7872f84c03c -r ee7e1a9e1985 main.cpp
--- a/main.cpp	Thu Mar 31 15:20:16 2016 +0000
+++ b/main.cpp	Thu Mar 31 15:23:00 2016 +0000
@@ -81,7 +81,7 @@
         memset(txPayload, 0, TXRX_BUF_LEN);
         memcpy(txPayload, buf, TXRX_BUF_LEN);       
         pc.printf("WriteHandler \r\n");
-        pc.printf("Length: %d \r\n", nbytesRead);
+        pc.printf("Length: %d \r\n", bytesRead);
         pc.printf("Data: ");
         for(index=0; index<bytesRead; index++)
         {
@@ -100,7 +100,7 @@
         {
             ble.updateCharacteristicValue(rxCharacteristic.getValueAttribute().getHandle(), rx_buf, rx_len); 
             pc.printf("RecHandler \r\n");
-            pc.printf("Length: %d \rn\n",rx_len);            
+            pc.printf("Length: %d \r\n",rx_len);            
             rx_len = 0;
             break;
         }