Fixed interface number of DFU when UART isn't included.

This commit is contained in:
Gareth McMullin 2011-02-12 22:24:37 +13:00
parent 7de78bbd6c
commit f9a7cd9c6e
1 changed files with 4 additions and 0 deletions

View File

@ -258,7 +258,11 @@ const struct usb_dfu_descriptor dfu_function = {
const struct usb_interface_descriptor dfu_iface = {
.bLength = USB_DT_INTERFACE_SIZE,
.bDescriptorType = USB_DT_INTERFACE,
#ifdef INCLUDE_UART_INTERFACE
.bInterfaceNumber = 4,
#else
.bInterfaceNumber = 2,
#endif
.bAlternateSetting = 0,
.bNumEndpoints = 0,
.bInterfaceClass = 0xFE,