Skip to content

Commit d9b9fbc

Browse files
committed
lib/utils/pyexec: Update to work with new MICROPY_HW_ENABLE_USB option.
1 parent 5c320bd commit d9b9fbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/pyexec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "py/gc.h"
3636
#include "py/frozenmod.h"
3737
#include "py/mphal.h"
38-
#if defined(USE_DEVICE_MODE)
38+
#if MICROPY_HW_ENABLE_USB
3939
#include "irq.h"
4040
#include "usb.h"
4141
#endif
@@ -406,7 +406,7 @@ int pyexec_friendly_repl(void) {
406406
for (;;) {
407407
input_restart:
408408

409-
#if defined(USE_DEVICE_MODE)
409+
#if MICROPY_HW_ENABLE_USB
410410
if (usb_vcp_is_enabled()) {
411411
// If the user gets to here and interrupts are disabled then
412412
// they'll never see the prompt, traceback etc. The USB REPL needs

0 commit comments

Comments
 (0)