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, committed 2014-09-26
- Comitter:
- ansond
- Date:
- Fri Sep 26 02:47:43 2014 +0000
- Parent:
- 5:56720730382d
- Child:
- 7:d1fc51718ca7
- Commit message:
- updates to logging
Changed in this revision
GroveEarbudSensor.cpp | Show annotated file Show diff for this revision Revisions of this file |
GroveEarbudSensor.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
--- a/GroveEarbudSensor.h Fri Sep 26 02:38:54 2014 +0000 +++ b/GroveEarbudSensor.h Fri Sep 26 02:47:43 2014 +0000 @@ -21,7 +21,7 @@ #ifndef _GROVE_EARBUD_SENSOR_H_ #define _GROVE_EARBUD_SENSOR_H_ - + // MBED #include "mbed.h" // ********* BEGIN Tunables *****************