1 parent 5c320bd commit d9b9fbcCopy full SHA for d9b9fbc
1 file changed
lib/utils/pyexec.c
@@ -35,7 +35,7 @@
35
#include "py/gc.h"
36
#include "py/frozenmod.h"
37
#include "py/mphal.h"
38
-#if defined(USE_DEVICE_MODE)
+#if MICROPY_HW_ENABLE_USB
39
#include "irq.h"
40
#include "usb.h"
41
#endif
@@ -406,7 +406,7 @@ int pyexec_friendly_repl(void) {
406
for (;;) {
407
input_restart:
408
409
- #if defined(USE_DEVICE_MODE)
+ #if MICROPY_HW_ENABLE_USB
410
if (usb_vcp_is_enabled()) {
411
// If the user gets to here and interrupts are disabled then
412
// they'll never see the prompt, traceback etc. The USB REPL needs
0 commit comments