From 9a2c2b45e1926ac0b5fe78a2155f8685323702b4 Mon Sep 17 00:00:00 2001 From: awalol Date: Thu, 14 May 2026 23:26:29 +0800 Subject: [PATCH] disable pico discoverable and connectable after connected --- src/bt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bt.cpp b/src/bt.cpp index b4572b7..d79f772 100644 --- a/src/bt.cpp +++ b/src/bt.cpp @@ -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); printf("[L2CAP] Remote Interrupt MTU: %d\n",mtu); + gap_connectable_control(false); + gap_discoverable_control(false); // tud_connect(); } else { printf("[L2CAP] Unknown Channel psm: 0x%02X", psm);