From 4300c7dba2f500cd3b2a664c7491aa3ddb328011 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 15 Oct 2015 00:05:55 +0100 Subject: py: Remove dependency on printf/fwrite in mp_plat_print. See issue #1500. --- py/mpconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py') diff --git a/py/mpconfig.h b/py/mpconfig.h index ad2fe3ee5..acee5ee95 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -806,7 +806,7 @@ typedef double mp_float_t; // 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 -- cgit v1.2.3