Make getDescriptors() work as getCharacteristics()

This commit is contained in:
h2zero 2020-06-24 19:33:04 -06:00
parent 273490359a
commit 05a5d0dea9

View file

@ -271,9 +271,7 @@ NimBLERemoteDescriptor* NimBLERemoteCharacteristic::getDescriptor(const NimBLEUU
std::vector<NimBLERemoteDescriptor*>* NimBLERemoteCharacteristic::getDescriptors(bool refresh) {
if(refresh) {
deleteDescriptors();
}
if(m_descriptorVector.empty()) {
if (!retrieveDescriptors()) {
NIMBLE_LOGE(LOG_TAG, "Error: Failed to get descriptors");
}