From 24511c4d4be290cd5d620ff23e5f0766a5179add Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Tue, 23 Jan 2024 22:04:39 +0800 Subject: [PATCH] fix actual len position --- class/wireless/usbh_bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/wireless/usbh_bluetooth.c b/class/wireless/usbh_bluetooth.c index 47a4cbac..d117dbe5 100644 --- a/class/wireless/usbh_bluetooth.c +++ b/class/wireless/usbh_bluetooth.c @@ -229,8 +229,8 @@ void usbh_bluetooth_hci_acl_rx_thread(void *argument) } actual_len += g_bluetooth_class.bulkin_urb.actual_length; if (g_bluetooth_class.bulkin_urb.actual_length != ep_mps) { - actual_len = 0; usbh_bluetooth_hci_rx_callback(USB_BLUETOOTH_HCI_ACL_IN, g_bluetooth_acl_buf, actual_len); + actual_len = 0; } else { /* read continue util read short packet */ }