altos: Windows sends USB Out packets of 0 length. Ack them.
authorKeith Packard <keithp@keithp.com>
Mon, 30 Aug 2010 11:52:00 +0000 (04:52 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 30 Aug 2010 11:52:00 +0000 (04:52 -0700)
commitc7ba92317ac55272acbde12416448ebd17b983a6
tree38fec34856ddacd28862b935a180d54a733d2f35
parent20a472cfe3369200150ea4ff067ceb28968dbcac
altos: Windows sends USB Out packets of 0 length. Ack them.

This was an untested case as no other operating system sents 0-length
out packets (they're not necessary). The correct response is to ACK
them by clearing the OUTPKT_RDY bit so that another packet can be sent.

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