We are making a bluetooth application for a vehicle.

Dependencies:   BLE_API X_NUCLEO_IDB0XA1 mbed

Fork of BLE_HeartRate_IDB0XA1 by ST

Revision:
27:49f379daad68
Parent:
26:3a1d82a26a83
Child:
28:a56710056f4d
--- a/main.cpp	Tue Jun 27 19:15:57 2017 +0000
+++ b/main.cpp	Tue Jun 27 19:44:12 2017 +0000
@@ -131,9 +131,9 @@
             ble.waitForEvent(); // low power wait for event
         }
         
-        if (alarm) {
+        if (alarm) {                                        //Flag set to sound the alarm?
             
-            if (alarm++ < 500) {
+            if (alarm++ < 500) {                            //Beep it on and off
                 buzzer = 1;
             }
             else {