Skip to content

Commit 0882034

Browse files
committed
fix compile option problems
1 parent d7ed38b commit 0882034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/circuitpy_mpconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extern void common_hal_mcu_enable_interrupts(void);
4646
#define MICROPY_PY_BLUETOOTH (0)
4747
#define MICROPY_PY_LWIP_SLIP (0)
4848
#define MICROPY_PY_OS_DUPTERM (0)
49-
#define MICROPY_PY_PYEXEC_COMPILE_ONLY (0)
49+
#define MICROPY_PYEXEC_COMPILE_ONLY (0)
5050
#define MICROPY_ROM_TEXT_COMPRESSION (0)
5151
#define MICROPY_VFS_LFS1 (0)
5252
#define MICROPY_VFS_LFS2 (0)

shared/runtime/pyexec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ MP_REGISTER_ROOT_POINTER(vstr_t * repl_line);
615615
#else // MICROPY_REPL_EVENT_DRIVEN
616616

617617
// CIRCUITPY-CHANGE: avoid warnings
618-
#if defined(MICROPY_HAL_HAS_STDIO_MODE_SWITCH) && !MICROPY_HAL_HAS_STDIO_MODE_SWITCH
618+
#if !defined(MICROPY_HAL_HAS_STDIO_MODE_SWITCH) || !MICROPY_HAL_HAS_STDIO_MODE_SWITCH
619619
// If the port doesn't need any stdio mode switching calls then provide trivial ones.
620620
static inline void mp_hal_stdio_mode_raw(void) {
621621
}

0 commit comments

Comments
 (0)