mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2025-02-22 14:08:54 +01:00
Clean up
This commit is contained in:
parent
2e9a7dec2f
commit
013eccdf79
2 changed files with 4 additions and 8 deletions
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -12,7 +12,6 @@ jobs:
|
|||
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# The version names here correspond to the versions of espressif/idf Docker image.
|
||||
# See https://hub.docker.com/r/espressif/idf/tags and
|
||||
|
|
|
@ -103,18 +103,15 @@ bool NimBLERemoteCharacteristic::retrieveDescriptors(const NimBLEUUID* uuidFilte
|
|||
desc_filter_t filter = {uuidFilter, &taskData};
|
||||
const uint16_t handle = getHandle();
|
||||
const uint16_t svcHandle = getRemoteService()->getEndHandle();
|
||||
const uint16_t cltHandle = getClient()->getConnHandle();
|
||||
|
||||
// If this is the last handle then there are no descriptors
|
||||
// If this is the last handle then there are no more descriptors
|
||||
if (handle == svcHandle) {
|
||||
NIMBLE_LOGD(LOG_TAG, "<< retrieveDescriptors(): found 0 descriptors.");
|
||||
NIMBLE_LOGD(LOG_TAG, "<< retrieveDescriptors(): found %d descriptors.", m_vDescriptors.size());
|
||||
return true;
|
||||
}
|
||||
|
||||
int rc = ble_gattc_disc_all_dscs(getClient()->getConnHandle(),
|
||||
handle,
|
||||
svcHandle,
|
||||
NimBLERemoteCharacteristic::descriptorDiscCB,
|
||||
&filter);
|
||||
int rc = ble_gattc_disc_all_dscs(cltHandle, handle, svcHandle, descriptorDiscCB, &filter);
|
||||
if (rc != 0) {
|
||||
NIMBLE_LOGE(LOG_TAG, "ble_gattc_disc_all_dscs: rc=%d %s", rc, NimBLEUtils::returnCodeToString(rc));
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue