Skip to content

Commit

Permalink
Terminate the hid interrupt out endpoint on deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nictrla committed Feb 4, 2025
1 parent 2d4a4ae commit 2a1acfd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ UX_SLAVE_CLASS *class_ptr;
/* Terminate the transactions pending on the endpoints. */
_ux_device_stack_transfer_all_request_abort(hid -> ux_device_class_hid_interrupt_endpoint, UX_TRANSFER_BUS_RESET);

#if defined(UX_DEVICE_CLASS_HID_INTERRUPT_OUT_SUPPORT)
_ux_device_stack_transfer_all_request_abort(hid -> ux_device_class_hid_read_endpoint, UX_TRANSFER_BUS_RESET);
#endif

/* If there is a deactivate function call it. */
if (hid -> ux_slave_class_hid_instance_deactivate != UX_NULL)
{
Expand Down

0 comments on commit 2a1acfd

Please sign in to comment.