From 63c15e435c6c1caf31cd5fe76e97e5136fb6c165 Mon Sep 17 00:00:00 2001 From: awalol Date: Sun, 22 Mar 2026 14:03:43 +0800 Subject: [PATCH] fix: mic mute --- src/bt.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bt.cpp b/src/bt.cpp index 68f5bdd..d793049 100644 --- a/src/bt.cpp +++ b/src/bt.cpp @@ -321,7 +321,10 @@ static void l2cap_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t bt_data_callback(INTERRUPT, packet, size); // 静默检测 - if (!mute[1] && (packet[3] < 120 || packet[3] > 140)) { + if (mute[1]) { // 麦克风静音开启 + return; + } + if (packet[3] < 120 || packet[3] > 140) { inactive_time = time_us_32(); }else if (time_us_32() - inactive_time > 600 * 1000 * 1000){ printf("disconnect when inactive\n");