mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
misc/common: Implement usb_cdc_reset_buffers for TinyUSB.
This commit is contained in:
parent
a11635b03b
commit
d1a20fb89d
@ -60,8 +60,9 @@ uint32_t usb_cdc_get_buf(uint8_t *buf, uint32_t len) {
|
||||
return bytes;
|
||||
}
|
||||
|
||||
void usb_cdc_reset_buffers() {
|
||||
|
||||
void usb_cdc_reset_buffers(void) {
|
||||
tx_ringbuf.iget = 0;
|
||||
tx_ringbuf.iput = 0;
|
||||
}
|
||||
|
||||
void tud_cdc_line_coding_cb(uint8_t itf, cdc_line_coding_t const *coding) {
|
||||
|
Loading…
Reference in New Issue
Block a user