Skip to content

Commit

Permalink
Bluetooth: CAP: Fix check for volume_mute_changed callback
Browse files Browse the repository at this point in the history
The callback was guarded by a wrong check.

Signed-off-by: Emil Gydesen <[email protected]>
  • Loading branch information
Thalley authored and carlescufi committed May 14, 2024
1 parent 681e1d4 commit 0cb828d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/audio/cap_commander.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static void cap_commander_proc_complete(void)
}
break;
case BT_CAP_COMMON_PROC_TYPE_VOLUME_MUTE_CHANGE:
if (cap_cb->volume_changed != NULL) {
if (cap_cb->volume_mute_changed != NULL) {
cap_cb->volume_mute_changed(failed_conn, err);
}
break;
Expand Down

0 comments on commit 0cb828d

Please sign in to comment.