|
@ -35,7 +35,7 @@ |
|
|
#include "py/gc.h" |
|
|
#include "py/gc.h" |
|
|
#include "py/frozenmod.h" |
|
|
#include "py/frozenmod.h" |
|
|
#include "py/mphal.h" |
|
|
#include "py/mphal.h" |
|
|
#if defined(USE_DEVICE_MODE) |
|
|
#if MICROPY_HW_ENABLE_USB |
|
|
#include "irq.h" |
|
|
#include "irq.h" |
|
|
#include "usb.h" |
|
|
#include "usb.h" |
|
|
#endif |
|
|
#endif |
|
@ -406,7 +406,7 @@ friendly_repl_reset: |
|
|
for (;;) { |
|
|
for (;;) { |
|
|
input_restart: |
|
|
input_restart: |
|
|
|
|
|
|
|
|
#if defined(USE_DEVICE_MODE) |
|
|
#if MICROPY_HW_ENABLE_USB |
|
|
if (usb_vcp_is_enabled()) { |
|
|
if (usb_vcp_is_enabled()) { |
|
|
// If the user gets to here and interrupts are disabled then
|
|
|
// If the user gets to here and interrupts are disabled then
|
|
|
// they'll never see the prompt, traceback etc. The USB REPL needs
|
|
|
// they'll never see the prompt, traceback etc. The USB REPL needs
|
|
|