OSDN Git Service

android/gatt: Fix incorrect entry check
authorMarcin Kraglak <marcin.kraglak@tieto.com>
Thu, 12 Jun 2014 09:08:24 +0000 (11:08 +0200)
committerSzymon Janc <szymon.janc@tieto.com>
Thu, 12 Jun 2014 11:37:32 +0000 (13:37 +0200)
android/gatt.c

index 2cfa0a1..6db81d4 100644 (file)
@@ -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;
        }