diff options
author | Christian Daniel <cd@maintech.de> | 2012-06-05 20:51:00 +0200 |
---|---|---|
committer | Christian Daniel <cd@maintech.de> | 2012-06-05 20:51:00 +0200 |
commit | 1982ab41fed404c3927b71e569977ff237792f3e (patch) | |
tree | 11ac44eb7dfc37855510b9dba3f4703f40425d5b | |
parent | bf8d8292013fa6a175aae1a3768ceece200ecde9 (diff) |
USB: fix statemachine to prevent bulk ep hang
-rw-r--r-- | firmware/src/fast_source.c | 4 |
1 files changed, 1 insertions, 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 |