Skip to content

Commit d82424b

Browse files
rugeGerritsennashif
authored andcommitted
tests: bluetooth: hci_uart_async: Set thread name after creation
When running on native_posix, the thread needs to be created before the thread name can be set. Signed-off-by: Rubin Gerritsen <[email protected]>
1 parent fb745f6 commit d82424b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/bluetooth/hci_uart_async/src/test_hci_uart_async.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ static void hci_uart_thread_entry(void *p1, void *p2, void *p3)
7070
}
7171
static int sys_init_spawn_hci_uart(void)
7272
{
73-
k_thread_name_set(&hci_uart_thread, "hci_uart_main");
7473
k_thread_create(&hci_uart_thread, hci_uart_thread_stack,
7574
K_THREAD_STACK_SIZEOF(hci_uart_thread_stack), hci_uart_thread_entry, NULL,
7675
NULL, NULL, CONFIG_MAIN_THREAD_PRIORITY, 0, K_NO_WAIT);
76+
k_thread_name_set(&hci_uart_thread, "hci_uart_main");
7777
return 0;
7878
}
7979
SYS_INIT(sys_init_spawn_hci_uart, POST_KERNEL, 64);

0 commit comments

Comments
 (0)