summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-03 22:37:50 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 14:02:51 +0000
commit55d6218b9a17f23754bd00d2759800a1447599ca (patch)
tree5a6c25a68897d1a2a985a4945704290a80ea4f65 /stmhal/main.c
parent65af7ebdc5c53eebcec7950948abcc16d6a0ac6c (diff)
downloadmicropython-55d6218b9a17f23754bd00d2759800a1447599ca.tar.gz
micropython-55d6218b9a17f23754bd00d2759800a1447599ca.zip
stmhal: Properly define pyb.usb_mode() semantics.
Diffstat (limited to 'stmhal/main.c')
-rw-r--r--stmhal/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index d2aaf89acd..2cb25d8647 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -473,7 +473,7 @@ soft_reset:
#if defined(USE_DEVICE_MODE)
// init USB device to default setting if it was not already configured
if (!(pyb_usb_flags & PYB_USB_FLAG_USB_MODE_CALLED)) {
- pyb_usb_dev_init(USBD_PID_CDC_MSC, USBD_MODE_CDC_MSC, NULL);
+ pyb_usb_dev_init(USBD_VID, USBD_PID_CDC_MSC, USBD_MODE_CDC_MSC, NULL);
}
#endif