From f476896ba45fac5b4b288c6109088e1b7f35f3c8 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 12 Jun 2014 11:08:24 +0200 Subject: [PATCH] android/gatt: Fix incorrect entry check --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 2cfa0a19e..6db81d450 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4132,7 +4132,7 @@ static void fill_gatt_response_by_handle(uint16_t handle, uint16_t offset, entry = queue_find(dev->pending_requests, match_dev_request_by_handle, UINT_TO_PTR(handle)); - if (entry) { + if (!entry) { DBG("No pending response found! Bogus android response?"); return; } -- 2.47.3