From 714ba948e6dd506700d42babc32321e3321bdb01 Mon Sep 17 00:00:00 2001 From: elettro1 <50360524+elettro1@users.noreply.github.com> Date: Wed, 5 Jun 2019 13:38:49 +0200 Subject: [PATCH] Update BLERemoteCharacteristic.cpp (#2800) Prevents the error that is generated on free on row 186 When calling the function readValue() sometimes it gave an error on this free. --- libraries/BLE/src/BLERemoteCharacteristic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/BLE/src/BLERemoteCharacteristic.cpp b/libraries/BLE/src/BLERemoteCharacteristic.cpp index e7f59f26..4d723752 100644 --- a/libraries/BLE/src/BLERemoteCharacteristic.cpp +++ b/libraries/BLE/src/BLERemoteCharacteristic.cpp @@ -39,6 +39,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic( m_charProp = charProp; m_pRemoteService = pRemoteService; m_notifyCallback = nullptr; + m_rawData = nullptr; retrieveDescriptors(); // Get the descriptors for this characteristic log_v("<< BLERemoteCharacteristic");