SLIP 2015 Group A / Mbed 2 deprecated UberVest

Dependencies:   BLE_API mbed nRF51822

Files at this revision

API Documentation at this revision

Comitter:
haydenball
Date:
Mon Oct 26 21:26:31 2015 +0000
Parent:
4:851d3f52c344
Child:
6:808cfc0b9480
Commit message:
Remove LED3 debugging

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Oct 24 21:05:58 2015 +0000
+++ b/main.cpp	Mon Oct 26 21:26:31 2015 +0000
@@ -21,7 +21,6 @@
 // Outputs
 DigitalOut connectionLed(LED1);
 DigitalOut led2(LED2);
-DigitalOut led3(LED3);
 
 // Inputs
 InterruptIn button(BUTTON1);
@@ -105,12 +104,10 @@
         }
         
         if (ble.getGapState().connected && sample) {
-            led3 = 0;
             sample = false;
             ecgValue = (ecg.read() * 1024);
             uberVestServicePtr->updateEcg(ecgValue);
         } else {
-            led3 = 1;
             ble.waitForEvent();
         }
     }