Team HUB / Mbed 2 deprecated nRF51822_Fresh

Dependencies:   BLE_API mbed nRF51822

Fork of nRF51822_Updated by Nicholas Hazen

Revision:
6:6e0eedc8e0a9
Parent:
5:5e55081e4d7a
Child:
7:863814fa71c3
--- a/main.cpp	Wed Aug 05 19:59:45 2015 +0000
+++ b/main.cpp	Thu Aug 06 14:24:53 2015 +0000
@@ -99,7 +99,6 @@
         //pc.("T b4 pckt received: %f\r\n", t.read()); //time before packet received in seconds
         ble.readCharacteristicValue(txCharacteristic.getValueAttribute().getHandle(), buf, &bytesRead);
         
-        ble.readCharacteristicValue(txCharacteristic.getValueAttribute().getHandle(), buf, &bytesRead);
         //t.stop();
         myled = 0;
         times[currentTrial] = t.read();
@@ -218,12 +217,6 @@
     //myled = 0;
     //pc.("T after pckt 3 sent: %f\r\n", t.read());
     
-    currentTrial++;
-    
-    if 
-    
-    myled = 0;
-    times[currentTrial] = t.read();
 }
 
 int main(void)