commit | 4300c7dba2f500cd3b2a664c7491aa3ddb328011 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Thu Oct 15 00:05:55 2015 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Thu Oct 15 00:05:55 2015 +0100 |
tree | f51c1a0aa2a7e9e56e8276a49fb7ff096a74e0ba | |
parent | 74d0df7324f23cfbbc2ae5b0cd0bf7f214fd05e5 [diff] [blame] |
py: Remove dependency on printf/fwrite in mp_plat_print. See issue #1500.
diff --git a/py/mpconfig.h b/py/mpconfig.h index ad2fe3e..acee5ee 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h
@@ -806,7 +806,7 @@ // This macro is used to do all output (except when MICROPY_PY_IO is defined) #ifndef MP_PLAT_PRINT_STRN -#define MP_PLAT_PRINT_STRN(str, len) printf("%.*s", (int)len, str) +#define MP_PLAT_PRINT_STRN(str, len) mp_hal_stdout_tx_strn_cooked(str, len) #endif #ifndef MP_SSIZE_MAX