1
0
mirror of https://github.com/hathach/tinyusb.git synced 2025-03-17 04:21:23 +00:00

Merge pull request from HiFiPhile/vendor_fix

Fix vendor class reset.
This commit is contained in:
Ha Thach 2024-10-01 00:17:57 +07:00 committed by GitHub
commit ad6e1ec782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -185,6 +185,8 @@ void vendord_reset(uint8_t rhport) {
tu_memclr(p_itf, ITF_MEM_RESET_SIZE); tu_memclr(p_itf, ITF_MEM_RESET_SIZE);
tu_edpt_stream_clear(&p_itf->rx.stream); tu_edpt_stream_clear(&p_itf->rx.stream);
tu_edpt_stream_clear(&p_itf->tx.stream); tu_edpt_stream_clear(&p_itf->tx.stream);
tu_edpt_stream_close(&p_itf->rx.stream);
tu_edpt_stream_close(&p_itf->tx.stream);
} }
} }