diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-21 19:25:34 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-21 19:25:34 +0100 |
commit | 6d197740cf7067c65f40574f7cf0707480bbf461 (patch) | |
tree | 7d434232d43782fd4cbb6dc4dce450ca72e180db /stmhal/modpyb.c | |
parent | 008343f6408ca6ec3be153e94b6e7824f2ce5a47 (diff) | |
download | micropython-6d197740cf7067c65f40574f7cf0707480bbf461.tar.gz micropython-6d197740cf7067c65f40574f7cf0707480bbf461.zip |
stmhal: Stop USB before entering DFU by software.
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r-- | stmhal/modpyb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/modpyb.c b/stmhal/modpyb.c index 43a017751d..7ec25038bf 100644 --- a/stmhal/modpyb.c +++ b/stmhal/modpyb.c @@ -65,6 +65,7 @@ /// \function bootloader() /// Activate the bootloader without BOOT* pins. STATIC NORETURN mp_obj_t pyb_bootloader(void) { + pyb_usb_dev_stop(); storage_flush(); HAL_RCC_DeInit(); |