Skip to content

Commit edce342

Browse files
committed
tests: benchmarks: peripheral_load: skip bt thread when CONFIG_BT=n
Beside dts def, skip bt thread when CONFIG_BT=n. Signed-off-by: Piotr Kosycarz <[email protected]>
1 parent da2281f commit edce342

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/benchmarks/peripheral_load/src/bt_beacon_thread.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "common.h"
88

9-
#if DT_NODE_HAS_STATUS(DT_CHOSEN(zephyr_bt_hci), okay)
9+
#if DT_NODE_HAS_STATUS(DT_CHOSEN(zephyr_bt_hci), okay) && defined(CONFIG_BT)
1010
#include <zephyr/types.h>
1111
#include <stddef.h>
1212
#include <zephyr/sys/printk.h>
@@ -101,5 +101,6 @@ K_THREAD_DEFINE(thread_bt_id, BT_THREAD_STACKSIZE, bt_thread, NULL, NULL, NULL,
101101
K_PRIO_PREEMPT(BT_THREAD_PRIORITY), 0, 0);
102102

103103
#else
104-
#pragma message("Bluetooth thread skipped due to missing 'bt_hci_sdc' node in the DTS")
104+
#pragma message( \
105+
"Bluetooth thread skipped due to missing 'bt_hci_sdc' node in the DTS or CONFIG_BT=n")
105106
#endif

0 commit comments

Comments
 (0)