Skip to content

Commit

Permalink
bluetooth: services: lbs: button_state only used if poll is enabled
Browse files Browse the repository at this point in the history
The global button_state variable is only used in
CONFIG_BT_LBS_POLL_BUTTON=y.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull committed Nov 5, 2024
1 parent 9ad182c commit 771d5ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/bluetooth/services/lbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
LOG_MODULE_REGISTER(bt_lbs, CONFIG_BT_LBS_LOG_LEVEL);

static bool notify_enabled;
#ifdef CONFIG_BT_LBS_POLL_BUTTON
static bool button_state;
#endif
static struct bt_lbs_cb lbs_cb;

static void lbslc_ccc_cfg_changed(const struct bt_gatt_attr *attr,
Expand Down

0 comments on commit 771d5ce

Please sign in to comment.