* [PATCH] Fixing characteristic read by uuid
@ 2011-04-05 18:38 Sheldon Demario
2011-04-09 17:28 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Sheldon Demario @ 2011-04-05 18:38 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Sheldon Demario
When the charecteristic to be read was the last one of a given range, it
was not being listed.
---
src/attrib-server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 2e95628..7ee496e 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)
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-09 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 18:38 [PATCH] Fixing characteristic read by uuid Sheldon Demario
2011-04-09 17:28 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox