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.
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_Updated by
Diff: main.cpp
- Revision:
- 6:6e0eedc8e0a9
- Parent:
- 5:5e55081e4d7a
- Child:
- 7:863814fa71c3
diff -r 5e55081e4d7a -r 6e0eedc8e0a9 main.cpp
--- 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)
