From 0940a92c1a341504cfa4fff6f27f233b816381f1 Mon Sep 17 00:00:00 2001 From: Andrzej Kaczmarek Date: Thu, 6 Sep 2012 11:15:08 +0200 Subject: [PATCH] gatt: Fix reading Service Changed CCC Find Information Request is only sent when there are no more attributes following Service Changed Value (incorrect) and thus will never find CCC. --- profiles/gatt/gas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c index ddd4e7074..28d7fbf86 100644 --- a/profiles/gatt/gas.c +++ b/profiles/gatt/gas.c @@ -245,7 +245,7 @@ static void gatt_characteristic_cb(GSList *characteristics, guint8 status, start = chr->value_handle + 1; end = gas->gatt.end; - if (start <= end) { + if (start > end) { error("Inconsistent database: Service Changed CCC missing"); return; } -- 2.47.3