summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-02-17 15:45:06 +1100
committerDamien George <damien@micropython.org>2021-02-17 15:47:17 +1100
commit89cb2c6b80ccf302fd7519bd7b3e00680fc717f3 (patch)
tree253899a2aacd324ee78cfdabdc589f97740e90dd
parent629fdc366adacf345bbacd83145be2f78823ee57 (diff)
stm32/mpbthciport: Use mp_printf instead of printf for error message.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/stm32/mpbthciport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/mpbthciport.c b/ports/stm32/mpbthciport.c
index 2d34e5e2b..c3cd864e2 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;
}