Date:2011-06-20 18:43:17 (7 years 5 months ago)
Author:Werner Almesberger
Commit:3f74098ce28b00227010f97cd615271de29c1ecd
Message:atusb/fw/ep0.c (my_setup): fixed test for ATUSB_SPI_READ2

Files: atusb/fw/ep0.c (1 diff)

Change Details

atusb/fw/ep0.c
218218    case ATUSB_FROM_DEV(ATUSB_SPI_READ2):
219219        spi_begin();
220220        spi_send(setup->wValue);
221        if (req == ATUSB_SPI_READ2)
221        if (req == ATUSB_FROM_DEV(ATUSB_SPI_READ2))
222222            spi_send(setup->wIndex);
223223        for (i = 0; i != setup->wLength; i++)
224224            buf[i] = spi_recv();

Archive Download the corresponding diff file



interactive