USB: fix statemachine to prevent bulk ep hang

This commit is contained in:
Christian Daniel 2012-06-05 20:51:00 +02:00
parent bf8d829201
commit 1982ab41fe
1 changed files with 1 additions and 3 deletions

View File

@ -489,10 +489,8 @@ void fastsource_start(void)
if(USBD_GetState() != USBD_STATE_CONFIGURED)
return;
if (!usb_state.active) {
usb_state.active = 1;
if (!usb_state.active)
refill_dma();
}
}
/* Use every Nth sample for computing statistics. At fpga.adc_clkdiv=2 we can