extended buffer check to usb_cdc_background

This commit is contained in:
sommersoft 2018-03-23 18:41:27 +00:00
parent ccbe557e30
commit f237657e5e

View File

@ -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();
}
}
}