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:
parent
737c50b50f
commit
c6cb97f7c4
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ static void sc_process(struct k_work *work)
|
||||||
sc->params.data = &sc_range[0];
|
sc->params.data = &sc_range[0];
|
||||||
sc->params.len = sizeof(sc_range);
|
sc->params.len = sizeof(sc_range);
|
||||||
|
|
||||||
if (!bt_gatt_indicate(NULL, &sc->params)) {
|
if (bt_gatt_indicate(NULL, &sc->params)) {
|
||||||
/* No connections to indicate */
|
/* No connections to indicate */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue