Skip to content

Commit d8d6792

Browse files
author
microbuilder
committed
Switched to .setFixedLen
1 parent efb67c8 commit d8d6792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ void setupHRM(void)
134134
// B6:7 = UINT16 - RR Internal (1/1024 second resolution)
135135
hrmc.setProperties(CHR_PROPS_NOTIFY);
136136
hrmc.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
137-
hrmc.setMaxLen(2);
138-
hrmc.setCccdWriteCallback(cccd_callback);
137+
hrmc.setFixedLen(2);
138+
hrmc.setCccdWriteCallback(cccd_callback); // Optionally capture CCCD updates
139139
hrmc.start();
140140
uint8_t hrmdata[2] = { 0b00000110, 0x40 }; // Set the characteristic to use 8-bit values, with the sensor connected and detected
141141
hrmc.notify(hrmdata, 2); // Use .notify instead of .write!

0 commit comments

Comments
 (0)