diff options
author | Damien George <damien.p.george@gmail.com> | 2018-02-13 18:56:12 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-13 18:56:12 +1100 |
commit | d9b9fbc41ae202cf9426cc1ae7514d230cc5c8d0 (patch) | |
tree | 4889eed38ee4a6e16d45841be14c359af794b84c /lib/utils/pyexec.c | |
parent | 5c320bd0b093f44cad19046d84a63e5ed4e7fc87 (diff) |
lib/utils/pyexec: Update to work with new MICROPY_HW_ENABLE_USB option.
Diffstat (limited to 'lib/utils/pyexec.c')
-rw-r--r-- | lib/utils/pyexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/pyexec.c b/lib/utils/pyexec.c index 1e99aa649..0522de797 100644 --- a/lib/utils/pyexec.c +++ b/lib/utils/pyexec.c @@ -35,7 +35,7 @@ #include "py/gc.h" #include "py/frozenmod.h" #include "py/mphal.h" -#if defined(USE_DEVICE_MODE) +#if MICROPY_HW_ENABLE_USB #include "irq.h" #include "usb.h" #endif @@ -406,7 +406,7 @@ friendly_repl_reset: for (;;) { input_restart: - #if defined(USE_DEVICE_MODE) + #if MICROPY_HW_ENABLE_USB if (usb_vcp_is_enabled()) { // If the user gets to here and interrupts are disabled then // they'll never see the prompt, traceback etc. The USB REPL needs |