Commit 89cb2c6b authored by Damien George's avatar Damien George

stm32/mpbthciport: Use mp_printf instead of printf for error message.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 629fdc36
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment