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:
Jim Paris 2019-04-03 14:00:50 -04:00 committed by Johan Hedberg
commit 7cdfe7f26f

View file

@ -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[])
{