1 parent 87c6250 commit aa73062Copy full SHA for aa73062
1 file changed
stmhal/usbd_desc.c
@@ -82,8 +82,8 @@ __ALIGN_BEGIN static uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END;
82
83
// set the VID, PID and device release number
84
void USBD_SetVIDPIDRelease(uint16_t vid, uint16_t pid, uint16_t device_release_num) {
85
- hUSBDDeviceDesc[8] = LOBYTE(pid);
86
- hUSBDDeviceDesc[9] = HIBYTE(pid);
+ hUSBDDeviceDesc[8] = LOBYTE(vid);
+ hUSBDDeviceDesc[9] = HIBYTE(vid);
87
hUSBDDeviceDesc[10] = LOBYTE(pid);
88
hUSBDDeviceDesc[11] = HIBYTE(pid);
89
hUSBDDeviceDesc[12] = LOBYTE(device_release_num);
0 commit comments