extended buffer check to usb_cdc_background
This commit is contained in:
parent
ccbe557e30
commit
f237657e5e
@ -331,6 +331,9 @@ bool usb_connected(void) {
|
||||
void usb_cdc_background() {
|
||||
//
|
||||
if (mp_interrupt_char != -1 && cdc_enabled() && !pending_read) {
|
||||
start_read();
|
||||
// Make sure we have space in the buffer
|
||||
if (usb_rx_count < 64) {
|
||||
start_read();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user