Skip to content

Commit fe09320

Browse files
committed
fix hrm
1 parent d8d6792 commit fe09320

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,7 @@ void loop()
200200
if (blinkyms+BLINKY_MS < millis()) {
201201
blinkyms = millis();
202202
digitalToggle(STATUS_LED);
203-
}
204203

205-
// Update the HRM value periodically
206-
if (blinkyms+BLINKY_MS < millis()) {
207204
if (Bluefruit.connected()) {
208205
uint8_t hrmdata[2] = { 0b00000110, bps++ }; // Sensor connected, increment BPS value
209206
err_t resp = hrmc.notify(hrmdata, sizeof(hrmdata)); // Note: We use .notify instead of .write!

0 commit comments

Comments
 (0)