Skip to content

Commit 98f7729

Browse files
committed
unix/unix_mphal: Be sure to wrap dupterm code with MICROPY_PY_OS_DUPTERM.
1 parent 8fa9264 commit 98f7729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unix/unix_mphal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void mp_hal_stdio_mode_orig(void) {
108108

109109
#endif
110110

111+
#if MICROPY_PY_OS_DUPTERM
111112
static int call_dupterm_read(void) {
112113
nlr_buf_t nlr;
113114
if (nlr_push(&nlr) == 0) {
@@ -138,6 +139,7 @@ static int call_dupterm_read(void) {
138139

139140
return -1;
140141
}
142+
#endif
141143

142144
int mp_hal_stdin_rx_chr(void) {
143145
unsigned char c;

0 commit comments

Comments
 (0)