summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modpyb.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modpyb.c')
-rw-r--r--stmhal/modpyb.c1
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();