a2dp-forwarding: use gap_pin_code_response

This commit is contained in:
Matthias Ringwald 2020-07-31 07:51:49 +02:00 committed by Milanka Ringwald
parent 9b8cf64ebe
commit 350da86233

View File

@ -335,7 +335,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
// inform about pin code request
printf("Pin code request - using '0000'\n");
hci_event_pin_code_request_get_bd_addr(packet, event_addr);
hci_send_cmd(&hci_pin_code_request_reply, &event_addr, 4, "0000");
gap_pin_code_response(event_addr, "0000");
break;
case HCI_EVENT_CONNECTION_COMPLETE:
hci_event_connection_complete_get_bd_addr(packet, event_addr);