stm32/main: Use mp_printf instead of printf for MPY start-up messages.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2023-03-09 11:08:24 +11:00
parent b9dad0add2
commit b981e37ccd

View File

@ -204,7 +204,7 @@ MP_NOINLINE STATIC bool init_flash_fs(uint reset_mode) {
} }
if (ret != 0) { if (ret != 0) {
printf("MPY: can't mount flash\n"); mp_printf(&mp_plat_print, "MPY: can't mount flash\n");
return false; return false;
} }
@ -289,7 +289,7 @@ STATIC bool init_sdcard_fs(void) {
} }
if (first_part) { 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; return false;
} else { } else {
return true; return true;