Skip to content

Commit 1f102c5

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 9b97144 commit 1f102c5

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
@@ -448,11 +448,6 @@ static void pbdrv_usb_handle_std_request(pbdrv_usb_nxt_setup_packet_t *packet) {
448448
size = sizeof(pbdrv_usb_nxt_full_config);
449449
pbdrv_usb_nxt_write_data(0, &pbdrv_usb_nxt_full_config,
450450
MIN(size, packet->length));
451-
452-
/* TODO: Why? This is not specified in the USB specs. */
453-
if (pbdrv_usb_nxt_full_config.conf_desc.wTotalLength < packet->length) {
454-
pbdrv_usb_nxt_send_null();
455-
}
456451
break;
457452

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

0 commit comments

Comments
 (0)