drivers/nble: Enable UART debug only if BLUETOOTH_DEBUG_DRIVER enabled

This allows to decrease number debug messages using config option.

Change-Id: I987d25c6d4b18503d6beb7feab97e9207100323d
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2016-02-11 15:32:14 +02:00
commit b436fa16b5
5 changed files with 9 additions and 0 deletions

View file

@ -31,6 +31,11 @@
#include "uart.h"
#include "rpc.h"
#if !defined(CONFIG_BLUETOOTH_DEBUG_DRIVER)
#undef BT_DBG
#define BT_DBG(fmt, ...)
#endif
/**
* @note this structure must be self-aligned and self-packed
*/