Bluetooth: audio: has: Fix checking wrong flag
This fixes testing and clearing features flag. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
96d6d70f13
commit
b10f02da61
1 changed files with 1 additions and 1 deletions
|
@ -1296,7 +1296,7 @@ static void features_work_process(struct k_work *work)
|
|||
/* mark to notify on reconnect */
|
||||
atomic_set_bit(client->flags, FLAG_FEATURES_CHANGED);
|
||||
continue;
|
||||
} else if (atomic_test_and_clear_bit(client->flags, FLAG_CONTROL_POINT_NOTIFY)) {
|
||||
} else if (atomic_test_and_clear_bit(client->flags, FLAG_FEATURES_CHANGED)) {
|
||||
err = bt_gatt_notify(client->conn, FEATURES_ATTR, &has.features,
|
||||
sizeof(has.features));
|
||||
if (err != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue