Send 0-length IN packet to flush USB after full packet
authorKeith Packard <keithp@keithp.com>
Sat, 10 Oct 2009 20:39:01 +0000 (13:39 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 10 Oct 2009 20:39:01 +0000 (13:39 -0700)
commitb8fc3975bd92037a0cf53b0ff2b0e05ce0ba668f
treeb5070f15d123ecb8095b31b96ca46ea0a9cef667
parente29961fdb2a48874c895829880eadbf13e094c0c
Send 0-length IN packet to flush USB after full packet

USB bulk transfers are a sequence of maximum-sized packets followed by
a short packet, which signals the end of the transfer. When the last
packet of the transfer would be a full-sized packet, an additional
packet of zero length is sent to signal the transfer end.

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