mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
stm32/mpbthciport: Use mp_printf instead of printf for error message.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user