diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2021-02-12 14:31:29 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-02-17 11:24:48 +1100 |
commit | 236274f08fb51d36eba9cd0458483bd398bfed0a (patch) | |
tree | 348726fc1df508e25e36480f68d4a12d70106493 | |
parent | 5cb91afb9b3b34bbf0ee022a3f69af90c01d1d54 (diff) |
extmod/nimble/hal/hal_uart: Fix HCI_TRACE format specifiers.
Makes this work consistently on unix and stm32 ports.
-rw-r--r-- | extmod/nimble/hal/hal_uart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extmod/nimble/hal/hal_uart.c b/extmod/nimble/hal/hal_uart.c index 230970b08..cd5e49e30 100644 --- a/extmod/nimble/hal/hal_uart.c +++ b/extmod/nimble/hal/hal_uart.c @@ -66,7 +66,7 @@ void hal_uart_start_tx(uint32_t port) { } #if HCI_TRACE - printf("< [% 8d] %02x", mp_hal_ticks_ms(), mp_bluetooth_hci_cmd_buf[0]); + printf("< [% 8d] %02x", (int)mp_hal_ticks_ms(), mp_bluetooth_hci_cmd_buf[0]); for (size_t i = 1; i < len; ++i) { printf(":%02x", mp_bluetooth_hci_cmd_buf[i]); } @@ -86,7 +86,7 @@ void mp_bluetooth_nimble_hci_uart_process(bool run_events) { int chr; while ((chr = mp_bluetooth_hci_uart_readchar()) >= 0) { #if HCI_TRACE - printf("> %02x (%d)\n", chr); + printf("> %02x\n", chr); #endif hal_uart_rx_cb(hal_uart_rx_arg, chr); |