amend it!
authorBernhard Urban <lewurm@gmx.net>
Sun, 20 Sep 2009 01:40:48 +0000 (03:40 +0200)
committerBernhard Urban <lewurm@gmx.net>
Sun, 20 Sep 2009 01:40:48 +0000 (03:40 +0200)
usb/core/core.c

index 10f9e5d34dcb9e4d5d8c1c1114b92f5c60846c6d..226d3a533fcd73f25e44ee868fe5b7c0c9c88edd 100644 (file)
@@ -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));