File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
usb/Adafruit_TinyUSB_core Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,8 @@ int main( void )
76
76
77
77
#ifdef NRF52840_XXAA
78
78
USBDevice.addInterface ( (Adafruit_USBD_Interface&) Serial);
79
- USBDevice.begin (USB_VID, USB_PID);
79
+ USBDevice.setID (USB_VID, USB_PID);
80
+ USBDevice.begin ();
80
81
usb_init ();
81
82
#endif
82
83
Original file line number Diff line number Diff line change @@ -173,11 +173,14 @@ bool Adafruit_USBD_Device::addInterface(Adafruit_USBD_Interface& itf)
173
173
return true ;
174
174
}
175
175
176
- bool Adafruit_USBD_Device::begin (uint16_t vid, uint16_t pid)
176
+ void Adafruit_USBD_Device::setID (uint16_t vid, uint16_t pid)
177
177
{
178
178
_desc_device.idVendor = vid;
179
179
_desc_device.idProduct = pid;
180
+ }
180
181
182
+ bool Adafruit_USBD_Device::begin (void )
183
+ {
181
184
return true ;
182
185
}
183
186
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ class Adafruit_USBD_Device
51
51
52
52
bool addInterface (Adafruit_USBD_Interface& itf);
53
53
54
- bool begin (uint16_t vid, uint16_t pid);
54
+ void setID (uint16_t vid, uint16_t pid);
55
+ bool begin (void );
55
56
56
57
bool mounted (void ) { return tud_mounted (); }
57
58
bool suspended (void ) { return tud_suspended (); }
You can’t perform that action at this time.
0 commit comments