Bluetooth: shell: fix build warning if !BT_CENTRAL
Fixes: .../zephyr/subsys/bluetooth/shell/bt.c:906:12: warning: 'cmd_chan_map' defined but not used [-Wunused-function] Signed-off-by: Jim Paris <jim@jtan.com>
This commit is contained in:
parent
318a98a7fb
commit
7cdfe7f26f
1 changed files with 2 additions and 0 deletions
|
@ -903,6 +903,7 @@ static int cmd_conn_update(const struct shell *shell,
|
|||
return err;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_BT_CENTRAL)
|
||||
static int cmd_chan_map(const struct shell *shell, size_t argc, char *argv[])
|
||||
{
|
||||
u8_t chan_map[5] = {};
|
||||
|
@ -923,6 +924,7 @@ static int cmd_chan_map(const struct shell *shell, size_t argc, char *argv[])
|
|||
|
||||
return err;
|
||||
}
|
||||
#endif /* CONFIG_BT_CENTRAL */
|
||||
|
||||
static int cmd_oob(const struct shell *shell, size_t argc, char *argv[])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue