diff options
| author | Jim Mussared | 2020-08-18 11:05:34 +1000 |
|---|---|---|
| committer | Damien George | 2020-09-08 12:53:24 +1000 |
| commit | 99a29ec705b463290d5a2ac1eabc46fb7f2a83b0 (patch) | |
| tree | 13918c236f68fea9de4425169877a9b932c4c4e2 /ports/unix | |
| parent | 6077c63a450d7c2ab5e31e5845ecb5f1a4634b26 (diff) | |
extmod/btstack: Detect HCI UART init failure.
Diffstat (limited to 'ports/unix')
| -rw-r--r-- | ports/unix/mpbthciport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/mpbthciport.c b/ports/unix/mpbthciport.c index 5a5c1d4a4..dbfb5e0d0 100644 --- a/ports/unix/mpbthciport.c +++ b/ports/unix/mpbthciport.c @@ -124,12 +124,12 @@ int mp_bluetooth_hci_uart_init(uint32_t port, uint32_t baudrate) { if (path != NULL) { strcpy(uart_device_name, path); } - DEBUG_printf("Using HCI UART: %s\n", uart_device_name); + DEBUG_printf("mp_bluetooth_hci_uart_init: Using HCI UART: %s\n", uart_device_name); int flags = O_RDWR | O_NOCTTY | O_NONBLOCK; uart_fd = open(uart_device_name, flags); if (uart_fd == -1) { - DEBUG_printf("Unable to open port %s", uart_device_name); + printf("mp_bluetooth_hci_uart_init: Unable to open port %s\n", uart_device_name); return -1; } |
