Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0e6c9b0 authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk Committed by Automerger Merge Worker
Browse files

Don't try to do read multiple procedure if only one attribute is to read am:...

Don't try to do read multiple procedure if only one attribute is to read am: 3599abcf am: 38fc5cdc am: 10897cd8

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1690792

Change-Id: Ic72426f1a599cc6bfa17c37a78b8ef5970062e30
parents de9fc536 10897cd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -175,7 +175,7 @@ static void bta_gattc_explore_next_service(uint16_t conn_id,
    p_clcb->request_during_discovery =
        BTA_GATTC_DISCOVER_REQ_READ_EXT_PROP_DESC;

    if (p_srvc_cb->read_multiple_not_supported) {
    if (p_srvc_cb->read_multiple_not_supported || descriptors.size() == 1) {
      tGATT_READ_PARAM read_param{
          .by_handle = {.handle = descriptors.front(),
                        .auth_req = GATT_AUTH_REQ_NONE}};