mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
le_audio: use gatt_event_notification_get_handle instead of channel callback argument to get con handle
# Conflicts: # src/le-audio/gatt-service/audio_stream_control_service_client.c # src/le-audio/gatt-service/published_audio_capabilities_service_client.c
This commit is contained in:
parent
c2a9c030f5
commit
5483d01a07
@ -257,8 +257,7 @@ static void bass_client_handle_gatt_server_notification(uint8_t packet_type, uin
|
||||
if (hci_event_packet_get_type(packet) != GATT_EVENT_NOTIFICATION){
|
||||
return;
|
||||
}
|
||||
|
||||
bass_client_connection_t * connection = bass_client_get_connection_for_con_handle(channel);
|
||||
bass_client_connection_t * connection = bass_client_get_connection_for_con_handle(gatt_event_notification_get_handle(packet));
|
||||
if (connection == NULL){
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user