From b981e37ccd733bc6c55cc5c1c67b29cc14dc874d Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 9 Mar 2023 11:08:24 +1100 Subject: [PATCH] stm32/main: Use mp_printf instead of printf for MPY start-up messages. Signed-off-by: Damien George --- ports/stm32/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 87799d2d3d..511da7d8af 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -204,7 +204,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) { } if (ret != 0) { - printf("MPY: can't mount flash\n"); + mp_printf(&mp_plat_print, "MPY: can't mount flash\n"); return false; } @@ -289,7 +289,7 @@ STATIC bool init_sdcard_fs(void) { } if (first_part) { - printf("MPY: can't mount SD card\n"); + mp_printf(&mp_plat_print, "MPY: can't mount SD card\n"); return false; } else { return true;