8000 extmod/nimble/hal/hal_uart: Fix HCI_TRACE format specifiers. · larsks/micropython@236274f · GitHub
[go: up one dir, main page]

Skip to content

Commit 236274f

Browse files
jimmodpgeorge
authored andcommitted
extmod/nimble/hal/hal_uart: Fix HCI_TRACE format specifiers.
Makes this work consistently on unix and stm32 ports.
1 parent 5cb91af commit 236274f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/nimble/hal/hal_uart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void hal_uart_start_tx(uint32_t port) {
6666
}
6767

6868
#if HCI_TRACE
69-
printf("< [% 8d] %02x", mp_hal_ticks_ms(), mp_bluetooth_hci_cmd_buf[0]);
69+
printf("< [% 8d] %02x", (int)mp_hal_ticks_ms(), mp_bluetooth_hci_cmd_buf[0]);
7070
for (size_t i = 1; i < len; ++i) {
7171
printf(":%02x", mp_bluetooth_hci_cmd_buf[i]);
7272
}
@@ -86,7 +86,7 @@ void mp_bluetooth_nimble_hci_uart_process(bool run_events) {
8686
int chr;
8787
while ((chr = mp_bluetooth_hci_uart_readchar()) >= 0) {
8888
#if HCI_TRACE
89-
printf("> %02x (%d)\n", chr);
89+
printf("> %02x\n", chr);
9090
#endif
9191
hal_uart_rx_cb(hal_uart_rx_arg, chr);
9292

0 commit comments

Comments
 (0)
0