Adjust _rx_in_progress=true in USBCDC.cpp for USB DMA auto-receive chip

pull/12176/head
cyliangtw 2019-11-18 15:08:30 +08:00
parent 84882f773e
commit dc55d741c0
1 changed files with 1 additions and 1 deletions

View File

@ -464,8 +464,8 @@ void USBCDC::_receive_isr_start()
{
if ((_rx_size == 0) && !_rx_in_progress) {
// Refill the buffer
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
_rx_in_progress = true;
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
}
}