Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
236274f0
Commit
236274f0
authored
Feb 12, 2021
by
Jim Mussared
Committed by
Damien George
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extmod/nimble/hal/hal_uart: Fix HCI_TRACE format specifiers.
Makes this work consistently on unix and stm32 ports.
parent
5cb91afb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
extmod/nimble/hal/hal_uart.c
extmod/nimble/hal/hal_uart.c
+2
-2
No files found.
extmod/nimble/hal/hal_uart.c
View file @
236274f0
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment