Skip to content

Commit 49313f5

Browse files
committed
fix ports/unix typo
1 parent 2e33e00 commit 49313f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/unix/unix_mphal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ mp_uint_t mp_hal_stdout_tx_strn(const char *str, size_t len) {
195195
MP_HAL_RETRY_SYSCALL(ret, write(STDOUT_FILENO, str, len), {});
196196
mp_uint_t written = ret < 0 ? 0 : ret;
197197
// CIRCUITPY-CHANGE: need to conditionalize MICROPY_PY_OS_DUPTERM
198-
#if MICROPY_PY_OS_DUPTERM int dupterm_res = mp_os_dupterm_tx_strn(str, len);
198+
#if MICROPY_PY_OS_DUPTERM
199+
int dupterm_res = mp_os_dupterm_tx_strn(str, len);
199200
if (dupterm_res >= 0) {
200201
written = MIN((mp_uint_t)dupterm_res, written);
201202
}

0 commit comments

Comments
 (0)