8000 stm32/mpbthciport: Use mp_printf instead of printf for error message. · larsks/micropython@89cb2c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89cb2c6

Browse files
committed
stm32/mpbthciport: Use mp_printf instead of printf for error message.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 629fdc3 commit 89cb2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/stm32/mpbthciport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ int mp_bluetooth_hci_uart_write(const uint8_t *buf, size_t len) {
232232
int errcode;
233233
uart_tx_data(&mp_bluetooth_hci_uart_obj, (void *)buf, len, &errcode);
234234
if (errcode != 0) {
235-
printf("\nmp_bluetooth_hci_uart_write: failed to write to UART %d\n", errcode);
235+
mp_printf(&mp_plat_print, "\nmp_bluetooth_hci_uart_write: failed to write to UART %d\n", errcode);
236236
}
237237
return 0;
238238
}

0 commit comments

Comments
 (0)
0