Skip to content

Commit c777b69

Browse files
philandstuffdpgeorge
authored andcommitted
stmhal: Update boot.py files to use VCP instead of CDC.
1 parent 0f8b1ba commit c777b69

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/SDdatalogger/boot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
pyb.LED(4).on() # indicate that we are selecting the mode
1717

1818
if switch_value:
19-
pyb.usb_mode('CDC+MSC')
19+
pyb.usb_mode('VCP+MSC')
2020
pyb.main('cardreader.py') # if switch was pressed, run this
2121
else:
22-
pyb.usb_mode('CDC+HID')
22+
pyb.usb_mode('VCP+HID')
2323
pyb.main('datalogger.py') # if switch wasn't pressed, run this
2424

2525
pyb.LED(4).off() # indicate that we finished selecting the mode

stmhal/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ static const char fresh_boot_py[] =
137137
"import machine\r\n"
138138
"import pyb\r\n"
139139
"#pyb.main('main.py') # main script to run after this one\r\n"
140-
"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n"
141-
"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\r\n"
140+
"#pyb.usb_mode('VCP+MSC') # act as a serial and a storage device\r\n"
141+
"#pyb.usb_mode('VCP+HID') # act as a serial device and a mouse\r\n"
142142
;
143143

144144
static const char fresh_main_py[] =

0 commit comments

Comments
 (0)