Bluetooth: shell: Fix unused function warning
Prevent warnings by conditional compilation of static functions. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
parent
8c36140408
commit
9c286e50f6
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#define CHAR_SIZE_MAX 512
|
#define CHAR_SIZE_MAX 512
|
||||||
|
|
||||||
|
#if defined(CONFIG_BT_GATT_CLIENT) || defined(CONFIG_BT_GATT_DYNAMIC_DB)
|
||||||
extern uint8_t selected_id;
|
extern uint8_t selected_id;
|
||||||
|
|
||||||
static struct write_stats {
|
static struct write_stats {
|
||||||
|
@ -70,13 +71,14 @@ static void print_write_stats(void)
|
||||||
shell_print(ctx_shell, "Write #%u: %u bytes (%u bps)",
|
shell_print(ctx_shell, "Write #%u: %u bytes (%u bps)",
|
||||||
write_stats.count, write_stats.total, write_stats.rate);
|
write_stats.count, write_stats.total, write_stats.rate);
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_BT_GATT_CLIENT || CONFIG_BT_GATT_DYNAMIC_DB */
|
||||||
|
|
||||||
|
#if defined(CONFIG_BT_GATT_CLIENT)
|
||||||
static void reset_write_stats(void)
|
static void reset_write_stats(void)
|
||||||
{
|
{
|
||||||
memset(&write_stats, 0, sizeof(write_stats));
|
memset(&write_stats, 0, sizeof(write_stats));
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_BT_GATT_CLIENT)
|
|
||||||
static void exchange_func(struct bt_conn *conn, uint8_t err,
|
static void exchange_func(struct bt_conn *conn, uint8_t err,
|
||||||
struct bt_gatt_exchange_params *params)
|
struct bt_gatt_exchange_params *params)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue