disable pico discoverable and connectable after connected

This commit is contained in:
awalol
2026-05-14 23:26:29 +08:00
parent 303a58b9c5
commit 9a2c2b45e1
+2
View File
@@ -441,6 +441,8 @@ static void l2cap_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t
const auto mtu = l2cap_get_remote_mtu_for_local_cid(hid_interrupt_cid); const auto mtu = l2cap_get_remote_mtu_for_local_cid(hid_interrupt_cid);
printf("[L2CAP] Remote Interrupt MTU: %d\n",mtu); printf("[L2CAP] Remote Interrupt MTU: %d\n",mtu);
gap_connectable_control(false);
gap_discoverable_control(false);
// tud_connect(); // tud_connect();
} else { } else {
printf("[L2CAP] Unknown Channel psm: 0x%02X", psm); printf("[L2CAP] Unknown Channel psm: 0x%02X", psm);