Skip to content

Commit

Permalink
[SW] Fix pairing regression
Browse files Browse the repository at this point in the history
Look like getting the HID descriptor for Switch controller set
the timing right.

Not great fix but ok for now. To investigate futher later...
  • Loading branch information
darthcloud committed Sep 9, 2020
1 parent 8c65217 commit a7d1b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/bluetooth/hci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ void bt_hci_evt_hdlr(struct bt_hci_pkt *bt_hci_evt_pkt) {
if (type > BT_NONE) {
device->type = bt_hci_get_type_from_name(remote_name_req_complete->name);
}
if (device->type == HID_GENERIC) {
if (device->type == HID_GENERIC || device->type == SW) {
bt_hci_cmd_read_remote_features(&device->acl_handle);
}
if (!atomic_test_bit(&device->flags, BT_DEV_PAGE)) {
Expand Down

0 comments on commit a7d1b74

Please sign in to comment.