diff options
| author | HiFiPhile <[email protected]> | 2024-09-28 11:24:35 +0200 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-01 00:03:01 +0700 |
| commit | 53989a99f60e755094f146e936b49b0ef24e6ec0 (patch) | |
| tree | 87dc5d16e990c47cdc69578dae8a485d022774f2 /src | |
| parent | 254167bdbdbbe25c13f17c05f16b15d9b96a80e9 (diff) | |
Fix vendor class reset.
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/vendor/vendor_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/class/vendor/vendor_device.c b/src/class/vendor/vendor_device.c index 15829991a..ca04d9a01 100644 --- a/src/class/vendor/vendor_device.c +++ b/src/class/vendor/vendor_device.c @@ -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); } } |
