update pid for metro nrf52840
This commit is contained in:
@ -97,7 +97,7 @@ void usb_init(bool cdc_only)
|
||||
if ( cdc_only )
|
||||
{
|
||||
// Change PID to CDC only
|
||||
usb_desc_dev.idProduct = USB_DESC_SERIAL_ONLY_PID;
|
||||
usb_desc_dev.idProduct = USB_DESC_CDC_ONLY_PID;
|
||||
|
||||
// Remove MSC interface = reduce total interface + adjust config desc length
|
||||
usb_desc_cfg.config.bNumInterfaces--;
|
||||
|
@ -33,15 +33,15 @@
|
||||
#endif
|
||||
|
||||
#ifndef USB_DESC_VID
|
||||
#define USB_DESC_VID 0x239A
|
||||
#define USB_DESC_VID 0x239A
|
||||
#endif
|
||||
|
||||
#ifndef USB_DESC_UF2_PID
|
||||
#define USB_DESC_UF2_PID 0x0029
|
||||
#define USB_DESC_UF2_PID 0x0029
|
||||
#endif
|
||||
|
||||
#ifndef USB_DESC_SERIAL_ONLY_PID
|
||||
#define USB_DESC_SERIAL_ONLY_PID 0x002A
|
||||
#ifndef USB_DESC_CDC_ONLY_PID
|
||||
#define USB_DESC_CDC_ONLY_PID 0x002A
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user