NCTU Programming Marathon / Mbed 2 deprecated Program3_BLEHeartRate

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Fork of Program3_BLEHeartRate by Make NTU Hackathon

Files at this revision

API Documentation at this revision

Comitter:
apalmieri
Date:
Tue Sep 29 15:06:46 2015 +0000
Parent:
2:bc0c0d442a24
Child:
4:f7b728bd74a5
Commit message:
Remove 'IDB0XA1_D13_PATCH' from main

Changed in this revision

X_NUCLEO_IDB0XA1.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_IDB0XA1.lib	Tue Sep 29 09:23:04 2015 +0000
+++ b/X_NUCLEO_IDB0XA1.lib	Tue Sep 29 15:06:46 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_IDB0XA1/#2e468f07a94f
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_IDB0XA1/#32039585a969
--- a/main.cpp	Tue Sep 29 09:23:04 2015 +0000
+++ b/main.cpp	Tue Sep 29 15:06:46 2015 +0000
@@ -21,10 +21,7 @@
 #include "ble/services/DeviceInformationService.h"
 
 BLE  ble;
-
-#if !defined(IDB0XA1_D13_PATCH)
 DigitalOut led1(LED1);
-#endif
 
 const static char     DEVICE_NAME[]        = "HRM1";
 static const uint16_t uuid16_list[]        = {GattService::UUID_HEART_RATE_SERVICE,
@@ -38,10 +35,7 @@
 
 void periodicCallback(void)
 {
-
-#if !defined(IDB0XA1_D13_PATCH)
     led1 = !led1; /* Do blinky on LED1 while we're waiting for BLE events */
-#endif
     /* Note that the periodicCallback() executes in interrupt context, so it is safer to do
      * heavy-weight sensor polling from the main thread. */
     triggerSensorPolling = true;
@@ -49,10 +43,7 @@
 
 int main(void)
 {
-
-#if !defined(IDB0XA1_D13_PATCH)    
     led1 = 1;
-#endif
     Ticker ticker;
     ticker.attach(periodicCallback, 1); // blink LED every second