mirror of https://github.com/ARMmbed/mbed-os.git
Adjust _rx_in_progress=true in USBCDC.cpp for USB DMA auto-receive chip
parent
84882f773e
commit
dc55d741c0
|
@ -464,8 +464,8 @@ void USBCDC::_receive_isr_start()
|
||||||
{
|
{
|
||||||
if ((_rx_size == 0) && !_rx_in_progress) {
|
if ((_rx_size == 0) && !_rx_in_progress) {
|
||||||
// Refill the buffer
|
// Refill the buffer
|
||||||
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
|
|
||||||
_rx_in_progress = true;
|
_rx_in_progress = true;
|
||||||
|
read_start(_bulk_out, _rx_buffer, sizeof(_rx_buffer));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue