From: Bernhard Urban Date: Sun, 20 Sep 2009 01:40:48 +0000 (+0200) Subject: amend it! X-Git-Tag: firstresponse~3 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=ppcskel.git;a=commitdiff_plain;h=72ab854921bea7bedc8164597b2f805a22c84c5b amend it! --- diff --git a/usb/core/core.c b/usb/core/core.c index 10f9e5d..226d3a5 100644 --- a/usb/core/core.c +++ b/usb/core/core.c @@ -116,7 +116,9 @@ usb_device *usb_add_device() * wIndex = 0 * wLength = 64 // in fact just 8 bytes */ - usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 64, buf, 8, 0); + //usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 64, buf, 8, 0); + // length == 8 => no STALL?! :O + usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 8, buf, 8, 0); printf("===========\nafter usb control msg:\n"); hexdump(buf, sizeof(buf));