summaryrefslogtreecommitdiff
path: root/stmhal/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-02-03 20:52:48 +0000
committerDamien George <damien.p.george@gmail.com>2015-02-13 14:02:51 +0000
commit39ce2db181ec1e06426e2a3a371d2cd535723a17 (patch)
tree36c3049dc8541d4c8663660f318983ddbdda5ef9 /stmhal/main.c
parentd39c7aa517b722161a7dd792fafc5096d58beec8 (diff)
stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.
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 5938c7e36..d2aaf89ac 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_DEFAULT, USBD_MODE_CDC_MSC, NULL);
+ pyb_usb_dev_init(USBD_PID_CDC_MSC, USBD_MODE_CDC_MSC, NULL);
}
#endif