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.
This commit is contained in:
elettro1 2019-06-05 13:38:49 +02:00 committed by Me No Dev
parent e57de64a3c
commit 714ba948e6

View File

@ -39,6 +39,7 @@ BLERemoteCharacteristic::BLERemoteCharacteristic(
m_charProp = charProp; m_charProp = charProp;
m_pRemoteService = pRemoteService; m_pRemoteService = pRemoteService;
m_notifyCallback = nullptr; m_notifyCallback = nullptr;
m_rawData = nullptr;
retrieveDescriptors(); // Get the descriptors for this characteristic retrieveDescriptors(); // Get the descriptors for this characteristic
log_v("<< BLERemoteCharacteristic"); log_v("<< BLERemoteCharacteristic");