stmhal: Update boot.py files to use VCP instead of CDC.

This commit is contained in:
Philip Potter
2016-08-28 18:19:08 +01:00
committed by Damien George
parent 0f8b1ba8a2
commit c777b6950e
2 changed files with 4 additions and 4 deletions

View File

@@ -16,10 +16,10 @@ pyb.LED(3).off() # indicate that we finished waiting for the swit
pyb.LED(4).on() # indicate that we are selecting the mode
if switch_value:
pyb.usb_mode('CDC+MSC')
pyb.usb_mode('VCP+MSC')
pyb.main('cardreader.py') # if switch was pressed, run this
else:
pyb.usb_mode('CDC+HID')
pyb.usb_mode('VCP+HID')
pyb.main('datalogger.py') # if switch wasn't pressed, run this
pyb.LED(4).off() # indicate that we finished selecting the mode