]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blobdiff - fx2lafw.c
Corrected EP2FIFOCFG setup
[sigrok-firmware-fx2lafw.git] / fx2lafw.c
index 034d5ba4b12fe7a17859ce409e18d0802df57dec..e6c79e41a7f7a6db9377376e969866ac699571c7 100644 (file)
--- a/fx2lafw.c
+++ b/fx2lafw.c
@@ -90,13 +90,14 @@ static void setup_endpoints(void)
        /* EP2: Reset the FIFOs. */
        /* Note: RESETFIFO() gets the EP number WITHOUT bit 7 set/cleared. */
        RESETFIFO(0x02)
+
 #ifdef DEBUG
        /* Reset the FIFOs of EP6 when in debug mode. */
        RESETFIFO(0x06)
 #endif
 
        /* EP2: Enable AUTOIN mode. Set FIFO width to 8bits. */
-       EP2FIFOCFG = bmAUTOIN | ~bmWORDWIDE;
+       EP2FIFOCFG = bmAUTOIN;
        SYNCDELAY();
 
        /* EP2: Auto-commit 512 (0x200) byte packets (due to AUTOIN = 1). */