fix: hid input stutter

(cherry picked from commit 3a179c74b325b9a8a9a54d6b4061c33a5be1b734)
This commit is contained in:
awalol
2026-05-13 16:19:03 +08:00
parent 8960987156
commit 9c668a73e4
+10 -2
View File
@@ -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: {