From d8d6792b60f17174c4d7cd3b3f23362df767c6c3 Mon Sep 17 00:00:00 2001 From: microbuilder Date: Fri, 24 Feb 2017 19:03:29 +0100 Subject: [PATCH] Switched to .setFixedLen --- libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino b/libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino index 270e8047..ba5ce630 100644 --- a/libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino +++ b/libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino @@ -134,8 +134,8 @@ void setupHRM(void) // B6:7 = UINT16 - RR Internal (1/1024 second resolution) hrmc.setProperties(CHR_PROPS_NOTIFY); hrmc.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS); - hrmc.setMaxLen(2); - hrmc.setCccdWriteCallback(cccd_callback); + hrmc.setFixedLen(2); + hrmc.setCccdWriteCallback(cccd_callback); // Optionally capture CCCD updates hrmc.start(); uint8_t hrmdata[2] = { 0b00000110, 0x40 }; // Set the characteristic to use 8-bit values, with the sensor connected and detected hrmc.notify(hrmdata, 2); // Use .notify instead of .write!