diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-01-01 22:55:45 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-01-01 22:55:45 +0200 |
commit | 98f7729848625344d7eb51e69ed0ac4daa1fb8a7 (patch) | |
tree | a803fcbaccafed2cce99aa3cd2d5e49f07881987 | |
parent | 8fa9264430a7252478175b9e8c0b419029871149 (diff) | |
download | micropython-98f7729848625344d7eb51e69ed0ac4daa1fb8a7.tar.gz micropython-98f7729848625344d7eb51e69ed0ac4daa1fb8a7.zip |
unix/unix_mphal: Be sure to wrap dupterm code with MICROPY_PY_OS_DUPTERM.
-rw-r--r-- | unix/unix_mphal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/unix_mphal.c b/unix/unix_mphal.c index 67c818042a..03488b9a52 100644 --- a/unix/unix_mphal.c +++ b/unix/unix_mphal.c @@ -108,6 +108,7 @@ void mp_hal_stdio_mode_orig(void) { #endif +#if MICROPY_PY_OS_DUPTERM static int call_dupterm_read(void) { nlr_buf_t nlr; if (nlr_push(&nlr) == 0) { @@ -138,6 +139,7 @@ static int call_dupterm_read(void) { return -1; } +#endif int mp_hal_stdin_rx_chr(void) { unsigned char c; |