summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-13 22:25:55 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 22:25:55 +0000
commitaa730620bb95edbf1816b10b7c559a25a70b2146 (patch)
treeacdeb494a66571fa268a4b79a28b56fcd9b7ca1e
parent87c6250b4c941cbd7e77e42645ee9a330570622d (diff)
downloadmicropython-aa730620bb95edbf1816b10b7c559a25a70b2146.tar.gz
micropython-aa730620bb95edbf1816b10b7c559a25a70b2146.zip
stmhal: Fix setting of VID.
-rw-r--r--stmhal/usbd_desc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/usbd_desc.c b/stmhal/usbd_desc.c
index 212e91a576..2b8a79b158 100644
--- a/stmhal/usbd_desc.c
+++ b/stmhal/usbd_desc.c
@@ -82,8 +82,8 @@ __ALIGN_BEGIN static uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END;
// set the VID, PID and device release number
void USBD_SetVIDPIDRelease(uint16_t vid, uint16_t pid, uint16_t device_release_num) {
- hUSBDDeviceDesc[8] = LOBYTE(pid);
- hUSBDDeviceDesc[9] = HIBYTE(pid);
+ hUSBDDeviceDesc[8] = LOBYTE(vid);
+ hUSBDDeviceDesc[9] = HIBYTE(vid);
hUSBDDeviceDesc[10] = LOBYTE(pid);
hUSBDDeviceDesc[11] = HIBYTE(pid);
hUSBDDeviceDesc[12] = LOBYTE(device_release_num);