From c6cb97f7c43c55e8fb00d59a93d411928c02c688 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 21 Jul 2017 12:55:33 +0300 Subject: [PATCH] Bluetooth: GATT: Fix not setting SC_INDICATE_PENDING bt_gatt_indicate return 0 in case of success, not true, so SC_INDICATE_PENDING was flag was not set when it should. Signed-off-by: Luiz Augusto von Dentz --- subsys/bluetooth/host/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index cc4d37ec5f9..e44d7f91a61 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -182,7 +182,7 @@ static void sc_process(struct k_work *work) sc->params.data = &sc_range[0]; sc->params.len = sizeof(sc_range); - if (!bt_gatt_indicate(NULL, &sc->params)) { + if (bt_gatt_indicate(NULL, &sc->params)) { /* No connections to indicate */ return; }