We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d6792 commit fe09320Copy full SHA for fe09320
libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino
@@ -200,10 +200,7 @@ void loop()
200
if (blinkyms+BLINKY_MS < millis()) {
201
blinkyms = millis();
202
digitalToggle(STATUS_LED);
203
- }
204
205
- // Update the HRM value periodically
206
- if (blinkyms+BLINKY_MS < millis()) {
207
if (Bluefruit.connected()) {
208
uint8_t hrmdata[2] = { 0b00000110, bps++ }; // Sensor connected, increment BPS value
209
err_t resp = hrmc.notify(hrmdata, sizeof(hrmdata)); // Note: We use .notify instead of .write!
0 commit comments