From c8920fc1246637aaabcc40cbfe05845c91149f07 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 11 Sep 2014 08:08:47 +0200 Subject: [PATCH] android/gatt: Fix sending Get Descriptor callback GATT_STATUS_SUCCESS or GATT_STATUS_FAILURE should be send in this callback. --- android/gatt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/gatt.c b/android/gatt.c index 4ef2b5f62..5a1d21506 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -2772,9 +2772,9 @@ static void gatt_discover_desc_cb(guint8 status, GSList *descs, reply: descr = queue_peek_head(ch->descriptors); - send_client_descr_notify(status, conn->id, srvc->primary, &srvc->id, - &ch->id, - descr ? &descr->id : NULL); + send_client_descr_notify(status ? GATT_FAILURE : GATT_SUCCESS, conn->id, + srvc->primary, &srvc->id, &ch->id, + descr ? &descr->id : NULL); free(data); } -- 2.47.3