Skip to content
Snippets Groups Projects
Commit 98f77298 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/unix_mphal: Be sure to wrap dupterm code with MICROPY_PY_OS_DUPTERM.

parent 8fa92644
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment