Skip to content

Commit 53989a9

Browse files
HiFiPhilehathach
authored andcommitted
Fix vendor class reset.
1 parent 254167b commit 53989a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/class/vendor/vendor_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ void vendord_reset(uint8_t rhport) {
185185
tu_memclr(p_itf, ITF_MEM_RESET_SIZE);
186186
tu_edpt_stream_clear(&p_itf->rx.stream);
187187
tu_edpt_stream_clear(&p_itf->tx.stream);
188+
tu_edpt_stream_close(&p_itf->rx.stream);
189+
tu_edpt_stream_close(&p_itf->tx.stream);
188190
}
189191
}
190192

0 commit comments

Comments
 (0)