Merge pull request #2371 from openmv/usbdbg_bug_fix

misc: USB debug fixes.
This commit is contained in:
Ibrahim Abdelkader 2024-08-12 23:26:07 +03:00 committed by GitHub
commit eaf0cbd014
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 8f6a976deacc38c49830373091de14c7e2aed223
Subproject commit f9d41b13f77cfb468fc1db224db9f3e9266cfd43

View File

@ -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) {

View File

@ -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() {