From 89cb2c6b80ccf302fd7519bd7b3e00680fc717f3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 17 Feb 2021 15:45:06 +1100 Subject: [PATCH] stm32/mpbthciport: Use mp_printf instead of printf for error message. Signed-off-by: Damien George --- ports/stm32/mpbthciport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/mpbthciport.c b/ports/stm32/mpbthciport.c index 2d34e5e2b7..c3cd864e2b 100644 --- a/ports/stm32/mpbthciport.c +++ b/ports/stm32/mpbthciport.c @@ -232,7 +232,7 @@ int mp_bluetooth_hci_uart_write(const uint8_t *buf, size_t len) { int errcode; uart_tx_data(&mp_bluetooth_hci_uart_obj, (void *)buf, len, &errcode); if (errcode != 0) { - printf("\nmp_bluetooth_hci_uart_write: failed to write to UART %d\n", errcode); + mp_printf(&mp_plat_print, "\nmp_bluetooth_hci_uart_write: failed to write to UART %d\n", errcode); } return 0; }