Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 83e989b

Browse files
committed
[BT] Try to connect only to Nintendo LE devices that are SW2 ctrls
1 parent ad718c4 commit 83e989b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

main/bluetooth/hci.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,10 @@ static void bt_hci_le_meta_evt_hdlr(struct bt_hci_pkt *bt_hci_evt_pkt) {
11231123
/* Manufacturer Specific Data */
11241124
value = *(uint16_t *)&data[1];
11251125
if (value == 0x0553) {
1126-
goto connect;
1126+
uint16_t vid = *(uint16_t *)&data[6];
1127+
if (vid == 0x057e) {
1128+
goto connect;
1129+
}
11271130
}
11281131
break;
11291132
}

0 commit comments

Comments
 (0)