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 <luiz.von.dentz@intel.com>
This commit is contained in:
Luiz Augusto von Dentz 2017-07-21 12:55:33 +03:00 committed by Johan Hedberg
commit c6cb97f7c4

View file

@ -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;
}