From 1982ab41fed404c3927b71e569977ff237792f3e Mon Sep 17 00:00:00 2001 From: Christian Daniel Date: Tue, 5 Jun 2012 20:51:00 +0200 Subject: [PATCH] USB: fix statemachine to prevent bulk ep hang --- firmware/src/fast_source.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/src/fast_source.c b/firmware/src/fast_source.c index 89a2fb7..4ec6995 100644 --- a/firmware/src/fast_source.c +++ b/firmware/src/fast_source.c @@ -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