From a7d1b74ab46b2f803a9628d7c61a65b3f0aa164c Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Tue, 8 Sep 2020 20:25:10 -0400 Subject: [PATCH] [SW] Fix pairing regression Look like getting the HID descriptor for Switch controller set the timing right. Not great fix but ok for now. To investigate futher later... --- main/bluetooth/hci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/bluetooth/hci.c b/main/bluetooth/hci.c index 985af06c..c139db62 100644 --- a/main/bluetooth/hci.c +++ b/main/bluetooth/hci.c @@ -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)) {