Skip to content

Commit 2a1acfd

Browse files
committed
Terminate the hid interrupt out endpoint on deactivate
1 parent 2d4a4ae commit 2a1acfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/usbx_device_classes/src/ux_device_class_hid_deactivate.c

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ UX_SLAVE_CLASS *class_ptr;
8686
/* Terminate the transactions pending on the endpoints. */
8787
_ux_device_stack_transfer_all_request_abort(hid -> ux_device_class_hid_interrupt_endpoint, UX_TRANSFER_BUS_RESET);
8888

89+
#if defined(UX_DEVICE_CLASS_HID_INTERRUPT_OUT_SUPPORT)
90+
_ux_device_stack_transfer_all_request_abort(hid -> ux_device_class_hid_read_endpoint, UX_TRANSFER_BUS_RESET);
91+
#endif
92+
8993
/* If there is a deactivate function call it. */
9094
if (hid -> ux_slave_class_hid_instance_deactivate != UX_NULL)
9195
{

0 commit comments

Comments
 (0)