Bluetooth: monitor: Fix condition for disabling UART interrupts
If interrupt-driven UARTs are not use it makes no sense to try to disable interrupts (in fact the build will fail). Change-Id: Ib1e020895ced08183719a4cedd703d87e922b067 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
ad0e041e3d
commit
bf098dff6d
1 changed files with 2 additions and 0 deletions
|
@ -177,8 +177,10 @@ static int bt_monitor_init(struct device *d)
|
|||
|
||||
monitor_dev = device_get_binding(CONFIG_BLUETOOTH_MONITOR_ON_DEV_NAME);
|
||||
|
||||
#if defined(CONFIG_UART_INTERRUPT_DRIVEN)
|
||||
uart_irq_rx_disable(monitor_dev);
|
||||
uart_irq_tx_disable(monitor_dev);
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_UART_CONSOLE)
|
||||
__printk_hook_install(monitor_console_out);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue