Skip to content

Commit 1067b35

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 5a02c1e commit 1067b35

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/pbio/drv/usb/usb_nxt.c

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

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

0 commit comments

Comments
 (0)