When the EP0 IN buffer is full, don't panic, just skip sending another
authorKeith Packard <keithp@keithp.com>
Mon, 26 Jul 2010 19:52:17 +0000 (12:52 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 26 Jul 2010 19:54:41 +0000 (12:54 -0700)
commit05111d5be4d37bedaaee6415d6ee27347e6a112c
treeba3567a00eb06f93fc8702235714fb862cf78df5
parentd0647950b76bfa9942e4f8cf87353f2b724099f4
When the EP0 IN buffer is full, don't panic, just skip sending another

If the host doesn't pull the IN packet out of EP0 before sending
another SETUP command along, the IN buffer will still be busy when we
try to reply to the SETUP command. While I don't quite understand why
this would ever happen, there's no need to panic about it, just drop
the reply packet on the floor.

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