Library for the Grove Earbud Heartrate Sensor

Dependents:   BLE_Police_HRM_Earbud df-2014-salesforce-hrm-k64f BLE_HeartRate_ppm emoSound ... more

Revision:
6:40b1e50a1d15
Parent:
4:618117fe4b04
Child:
7:d1fc51718ca7
--- a/GroveEarbudSensor.cpp	Fri Sep 26 02:38:54 2014 +0000
+++ b/GroveEarbudSensor.cpp	Fri Sep 26 02:47:43 2014 +0000
@@ -83,7 +83,7 @@
       this->m_heartrate = tmp/(this->m_temp[NUM_SLOTS-1]-this->m_temp[0]);
       
       // DEBUG/Log
-      if (this->m_heartrate > 0) LOG_CONSOLE("heartrate: %d bpm\r\n",this->m_heartrate);
+      if (this->m_heartrate > 0) { LOG_CONSOLE("heartrate: %d bpm\r\n",this->m_heartrate); }
       
       // invoke any callbacks we might have
       if (this->m_cb_fn != NULL) {