Skip to content

Commit b43d551

Browse files
committed
pbio/drv/usb/usb_nxt.c: Remove extra null packet in configuration descriptor
This should not be needed, and it may be causing enumeration issues on Windows.
1 parent 1c9049d commit b43d551

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lib/pbio/drv/usb/usb_nxt.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,6 @@ static void pbdrv_usb_handle_std_request(pbdrv_usb_nxt_setup_packet_t *packet) {
447447
size = sizeof(pbdrv_usb_nxt_full_config);
448448
pbdrv_usb_nxt_write_data(0, &pbdrv_usb_nxt_full_config,
449449
MIN(size, packet->length));
450-
451-
/* TODO: Why? This is not specified in the USB specs. */
452-
if (pbdrv_usb_nxt_full_config.conf_desc.wTotalLength < packet->length) {
453-
pbdrv_usb_nxt_send_null();
454-
}
455450
break;
456451

457452
case USB_DESC_TYPE_STR: /* String or language info. */

0 commit comments

Comments
 (0)