From 1f1c3eb8439694b654f51860e5f3ccd6bb56aa24 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 5 Sep 2016 12:36:44 +0300 Subject: [PATCH] core/gatt-client: Don't invalidate Value if length is 0 Reading 0 bytes shall be valid so it shouldn't invalidate the property. --- src/gatt-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatt-client.c b/src/gatt-client.c index 57a1f66fb..114981c23 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -184,7 +184,7 @@ static void read_check_cb(struct gatt_db_attribute *attrib, int err, { gboolean *ret = user_data; - if (err || length == 0) { + if (err) { *ret = FALSE; return; } -- 2.47.3