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 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html