Skip to content

Commit 5158bde

Browse files
pamauryjwnrt
authored andcommitted
[silicon_creator,rescue] Fix USB interface number
Interface numbers start at 0, using 1 is incorrect and may confuse the host. Signed-off-by: Amaury Pouly <[email protected]>
1 parent a2a79de commit 5158bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw/device/silicon_creator/lib/rescue/rescue_usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const usb_device_descriptor_t device_desc = {
3939
};
4040

4141
#define DFU_INTERFACE_DSCR(alt) \
42-
USB_INTERFACE_DSCR(/*inum=*/1, /*alt=*/alt, /*nep=*/0, \
42+
USB_INTERFACE_DSCR(/*inum=*/0, /*alt=*/alt, /*nep=*/0, \
4343
/*class=*/kDfuDeviceClass, \
4444
/*subclass=*/kDfuDeviceSubClass, \
4545
/*protocol=*/kDfuDeviceProtocol, /*iint=*/4 + alt)

0 commit comments

Comments
 (0)