fix: hid input stutter
(cherry picked from commit 3a179c74b325b9a8a9a54d6b4061c33a5be1b734)
This commit is contained in:
+10
-2
@@ -162,15 +162,23 @@ static void hci_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *p
|
||||
break;
|
||||
}
|
||||
|
||||
case GAP_EVENT_INQUIRY_COMPLETE:
|
||||
case GAP_EVENT_INQUIRY_COMPLETE: {
|
||||
printf("[HCI] GAP Inquiry complete.\n");
|
||||
break;
|
||||
}
|
||||
case HCI_EVENT_INQUIRY_COMPLETE: {
|
||||
printf("[HCI] Inquiry complete\n");
|
||||
printf("[HCI] HCI Inquiry complete.\n");
|
||||
if (device_found) {
|
||||
printf("[HCI] Connecting to %s...\n", bd_addr_to_str(current_device_addr));
|
||||
new_pair = true;
|
||||
hci_send_cmd(&hci_create_connection, current_device_addr,
|
||||
hci_usable_acl_packet_types(), 0, 0, 0, 1);
|
||||
break;
|
||||
}
|
||||
printf("[HCI] Restart inquiry\n");
|
||||
gap_inquiry_start(30);
|
||||
gap_connectable_control(1);
|
||||
gap_discoverable_control(1);
|
||||
break;
|
||||
}
|
||||
case HCI_EVENT_COMMAND_STATUS: {
|
||||
|
||||
Reference in New Issue
Block a user