From 72ab854921bea7bedc8164597b2f805a22c84c5b Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Sun, 20 Sep 2009 03:40:48 +0200 Subject: [PATCH] amend it! --- usb/core/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.25.1