Skip to content

Commit aa73062

Browse files
committed
stmhal: Fix setting of VID.
1 parent 87c6250 commit aa73062

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stmhal/usbd_desc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ __ALIGN_BEGIN static uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END;
8282

8383
// set the VID, PID and device release number
8484
void USBD_SetVIDPIDRelease(uint16_t vid, uint16_t pid, uint16_t device_release_num) {
85-
hUSBDDeviceDesc[8] = LOBYTE(pid);
86-
hUSBDDeviceDesc[9] = HIBYTE(pid);
85+
hUSBDDeviceDesc[8] = LOBYTE(vid);
86+
hUSBDDeviceDesc[9] = HIBYTE(vid);
8787
hUSBDDeviceDesc[10] = LOBYTE(pid);
8888
hUSBDDeviceDesc[11] = HIBYTE(pid);
8989
hUSBDDeviceDesc[12] = LOBYTE(device_release_num);

0 commit comments

Comments
 (0)