From 827ba0ce19d157757e115f815e4ffef303153ec7 Mon Sep 17 00:00:00 2001 From: Sheldon Demario Date: Tue, 5 Apr 2011 15:38:04 -0300 Subject: [PATCH] Fixing characteristic read by UUID When the characteristic to be read was the last one of a given range, it was not being listed. --- src/attrib-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attrib-server.c b/src/attrib-server.c index 2e956284d..7ee496ed3 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -431,7 +431,7 @@ static uint16_t read_by_type(struct gatt_channel *channel, uint16_t start, if (a->handle < start) continue; - if (a->handle >= end) + if (a->handle > end) break; if (bt_uuid_cmp(&a->uuid, uuid) != 0) -- 2.47.3