Merge pull request #2820 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

View File

@ -185,6 +185,8 @@ void vendord_reset(uint8_t rhport) {
tu_memclr(p_itf, ITF_MEM_RESET_SIZE);
tu_edpt_stream_clear(&p_itf->rx.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);
}
}