altos/lpc: Stop sending SETUP IN when the requested size is reached
authorKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 08:08:50 +0000 (00:08 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 08:08:50 +0000 (00:08 -0800)
commita04c1dd5df76c9127615bc797a9d9f764eec1234
tree29facfb7670030758744fb81e467c47688593f83
parent1ab12861c3e70d7c22b27d988546a925616a0adc
altos/lpc: Stop sending SETUP IN when the requested size is reached

The host won't keep asking for SETUP IN packets once it has received
the amount of data requested, so check to see if we've sent that much
and flip back to IDLE state if so.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_usb_lpc.c