mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #2371 from openmv/usbdbg_bug_fix
misc: USB debug fixes.
This commit is contained in:
commit
eaf0cbd014
@ -1 +1 @@
|
||||
Subproject commit 8f6a976deacc38c49830373091de14c7e2aed223
|
||||
Subproject commit f9d41b13f77cfb468fc1db224db9f3e9266cfd43
|
||||
@ -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) {
|
||||
|
||||
@ -39,7 +39,7 @@ static vstr_t script_buf;
|
||||
// These functions must be implemented by the stack.
|
||||
extern uint32_t usb_cdc_buf_len();
|
||||
extern uint32_t usb_cdc_get_buf(uint8_t *buf, uint32_t len);
|
||||
extern void usb_cdc_reset_buffers();
|
||||
extern void usb_cdc_reset_buffers(void);
|
||||
|
||||
|
||||
void usbdbg_init() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user