Skip to content

Commit c3f518c

Browse files
committed
Adjust _rx_in_progress=true in USBCDC.cpp for USB DMA auto-receive chip
1 parent 9f07750 commit c3f518c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/source/usb/USBCDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ void USBCDC::_receive_isr_start()
464464
{
465465
if ((_rx_size == 0) && !_rx_in_progress) {
466466
// Refill the buffer
467-
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
468467
_rx_in_progress = true;
468+
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
469469
}
470470
}
471471

0 commit comments

Comments
 (0)