Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions subsys/bluetooth/host/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,15 @@ static void poll_out(char c)
}
#elif defined(CONFIG_BT_DEBUG_MONITOR_UART)
static const struct device *const monitor_dev =
#if DT_HAS_CHOSEN(zephyr_bt_mon_uart)
DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_mon_uart));
#elif !defined(CONFIG_UART_CONSOLE) && DT_HAS_CHOSEN(zephyr_console)
/* Fall back to console UART if it's available */
DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
#else
NULL;
#error "BT_DEBUG_MONITOR_UART enabled but no UART specified"
#endif

static void poll_out(char c)
{
Expand Down
Loading