From 3a67c37c0bd64886b49f28bfcf32c0836c395452 Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Fri, 20 Feb 2015 17:56:59 -0800 Subject: [PATCH] core/gatt-client: Fix PropertiesChanged for "Flags" This patch fixes a bug in the GATT client API code that sent the "Flags" property update on the wrong D-Bus object path and interface after reading characteristic extended properties. --- src/gatt-client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gatt-client.c b/src/gatt-client.c index 0364e2385..7aab7473a 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -1573,8 +1573,9 @@ static void read_ext_props_cb(bool success, uint8_t att_ecode, chrc->ext_props = get_le16(value); if (chrc->ext_props) g_dbus_emit_property_changed(btd_get_dbus_connection(), - service->path, - GATT_SERVICE_IFACE, "Flags"); + chrc->path, + GATT_CHARACTERISTIC_IFACE, + "Flags"); queue_remove(service->pending_ext_props, chrc); -- 2.47.3