mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-01 09:08:06 +00:00
hci: fix gap_remote_name_request
This commit is contained in:
parent
f6fd20f212
commit
ee8a36c873
@ -181,7 +181,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
|
||||
printf("Device found: %s ", bd_addr_to_str(addr));
|
||||
printf("with COD: 0x%06x, ", (unsigned int) gap_event_inquiry_result_get_class_of_device(packet));
|
||||
printf("pageScan %d, ", devices[deviceCount].pageScanRepetitionMode);
|
||||
printf("clock offset 0x%04x",devices[deviceCount].clockOffset & 0x7fff);
|
||||
printf("clock offset 0x%04x",devices[deviceCount].clockOffset);
|
||||
if (gap_event_inquiry_result_get_rssi_available(packet)){
|
||||
printf(", rssi %d dBm", (int8_t) gap_event_inquiry_result_get_rssi(packet));
|
||||
}
|
||||
|
@ -2821,7 +2821,7 @@ static void hci_run(void){
|
||||
if (hci_stack->remote_name_state == GAP_REMOTE_NAME_STATE_W2_SEND){
|
||||
hci_stack->remote_name_state = GAP_REMOTE_NAME_STATE_W4_COMPLETE;
|
||||
hci_send_cmd(&hci_remote_name_request, hci_stack->remote_name_addr,
|
||||
hci_stack->remote_name_page_scan_repetition_mode, hci_stack->remote_name_clock_offset);
|
||||
hci_stack->remote_name_page_scan_repetition_mode, 0, hci_stack->remote_name_clock_offset);
|
||||
return;
|
||||
}
|
||||
// pairing
|
||||
|
Loading…
Reference in New Issue
Block a user