Skip to content

Commit

Permalink
nimble/host: Fix build for extended scan
Browse files Browse the repository at this point in the history
This eliminates "declared but not used" warnings.
  • Loading branch information
m-gorecki committed Sep 9, 2024
1 parent 7af0b74 commit dd1d28b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ struct ble_gap_slave_state {

static bssnz_t struct ble_gap_slave_state ble_gap_slave[BLE_ADV_INSTANCES];

#if NIMBLE_BLE_ADVERTISE
#if MYNEWT_VAL(BLE_EXT_ADV)
static bool ext_adv_legacy_configured = false;
#endif
#endif

struct ble_gap_update_entry {
SLIST_ENTRY(ble_gap_update_entry) next;
Expand Down Expand Up @@ -2914,6 +2916,7 @@ ble_gap_adv_start(uint8_t own_addr_type, const ble_addr_t *direct_addr,
#endif
}

#if NIMBLE_BLE_ADVERTISE
#if MYNEWT_VAL(BLE_EXT_ADV)
static int
ble_gap_ext_adv_legacy_preconfigure(void)
Expand Down Expand Up @@ -2945,6 +2948,7 @@ ble_gap_ext_adv_legacy_preconfigure(void)
return 0;
}
#endif
#endif

int
ble_gap_adv_set_data(const uint8_t *data, int data_len)
Expand Down

0 comments on commit dd1d28b

Please sign in to comment.