Skip to content

Commit ba20133

Browse files
committed
fix MICROPY_HAL_HAS_STDIO_MODE_SWITCH build problems
1 parent d7ed38b commit ba20133

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)