diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2016-11-10 09:55:15 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2016-11-11 07:59:15 +0200 |
commit | a8506f7814a3a112dcef4b57a42a5bbea2c8eee3 (patch) | |
tree | 25471dbc87de4214c3ec5f70991300d4b8232055 /samples/bluetooth | |
parent | a69996210f0b4175d0d5d48898862957c26e58f7 (diff) |
Bluetooth: samples/hci_uart: Declare assert handler only when needed
If support for the controller assert handler isn't enabled the
function shouldn't exist.
Change-Id: I72076eb1001980f102a0404c91d22e41582ced25
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'samples/bluetooth')
-rw-r--r-- | samples/bluetooth/hci_uart/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/bluetooth/hci_uart/src/main.c b/samples/bluetooth/hci_uart/src/main.c index ee21e7859..e6a92187d 100644 --- a/samples/bluetooth/hci_uart/src/main.c +++ b/samples/bluetooth/hci_uart/src/main.c @@ -283,6 +283,7 @@ static int h4_send(struct net_buf *buf) return 0; } +#if defined(CONFIG_BLUETOOTH_CONTROLLER_ASSERT_HANDLER) void bt_controller_assert_handle(char *file, uint32_t line) { uint32_t len = 0, pos = 0; @@ -327,6 +328,7 @@ void bt_controller_assert_handle(char *file, uint32_t line) while (1) { }; } +#endif /* CONFIG_BLUETOOTH_CONTROLLER_ASSERT_HANDLER */ static int hci_uart_init(struct device *unused) { |