diff --git a/example/sdp_rfcomm_query.c b/example/sdp_rfcomm_query.c index d58b262c5..17d346d4d 100644 --- a/example/sdp_rfcomm_query.c +++ b/example/sdp_rfcomm_query.c @@ -90,7 +90,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe // BTstack activated, get started if (btstack_event_state_get_state(packet) == HCI_STATE_WORKING){ handle_sdp_client_query_request.callback = &handle_start_sdp_client_query; - (void) sdp_client_register_query_callback(&handle_start_sdp_client_query); + (void) sdp_client_register_query_callback(&handle_sdp_client_query_request); } break; default: diff --git a/example/spp_streamer_client.c b/example/spp_streamer_client.c index 8ef6b83a6..c0d87f055 100644 --- a/example/spp_streamer_client.c +++ b/example/spp_streamer_client.c @@ -278,7 +278,7 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack printf("Start to connect and query for SPP service\n"); state = W2_SEND_SDP_QUERY; handle_sdp_client_query_request.callback = &handle_start_sdp_client_query; - (void) sdp_client_register_query_callback(&handle_start_sdp_client_query); + (void) sdp_client_register_query_callback(&handle_sdp_client_query_request); break; default: break;