mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-01 06:40:08 +00:00
nimble/ble_gap: adv_enable_tx preprocessor directives corrections
There wher compilation errors for blecent if NIMBLE_BLE_ADVERTISE was not set. Appropriate preprocessor if conditions where added.
This commit is contained in:
committed by
Prasad Alatkar
parent
e9f52d8c1c
commit
31d5d9253a
@@ -865,7 +865,7 @@ ble_gap_master_ticks_until_exp(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
#if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
static uint32_t
|
||||
ble_gap_slave_ticks_until_exp(void)
|
||||
{
|
||||
@@ -1622,7 +1622,7 @@ ble_gap_master_timer(void)
|
||||
return BLE_HS_FOREVER;
|
||||
}
|
||||
|
||||
#if !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
#if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
static int32_t
|
||||
ble_gap_slave_timer(void)
|
||||
{
|
||||
@@ -1721,7 +1721,7 @@ ble_gap_timer(void)
|
||||
|
||||
min_ticks = min(master_ticks, update_ticks);
|
||||
|
||||
#if !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
#if NIMBLE_BLE_ADVERTISE && !MYNEWT_VAL(BLE_EXT_ADV)
|
||||
min_ticks = min(min_ticks, ble_gap_slave_timer());
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user