fix: ds5 does not fully disconnect

This commit is contained in:
awalol
2026-04-29 13:04:30 +08:00
parent d5daf2ee9f
commit 137535c8cf
+3
View File
@@ -435,6 +435,9 @@ static void l2cap_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t
} else {
printf("[L2CAP] Channel closed cid=0x%04X\n", local_cid);
}
if (hid_control_cid == 0 && hid_interrupt_cid == 0) {
bt_disconnect();
}
break;
}