mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-08 18:20:02 +00:00
rename ble_hs_enabled --> ble_hs_is_enabled
This commit is contained in:
committed by
ccollins476ad
parent
68a7f7815b
commit
15b1e4345c
@@ -296,7 +296,7 @@ extern struct ble_hs_cfg ble_hs_cfg;
|
||||
* @return 1 if the host is enabled;
|
||||
* 0 if the host is disabled.
|
||||
*/
|
||||
int ble_hs_enabled(void);
|
||||
int ble_hs_is_enabled(void);
|
||||
|
||||
/**
|
||||
* Indicates whether the host has synchronized with the controller.
|
||||
|
||||
@@ -2093,7 +2093,7 @@ ble_gap_adv_start(uint8_t own_addr_type, const ble_addr_t *direct_addr,
|
||||
}
|
||||
}
|
||||
|
||||
if (!ble_hs_enabled()) {
|
||||
if (!ble_hs_is_enabled()) {
|
||||
rc = BLE_HS_EDISABLED;
|
||||
goto done;
|
||||
}
|
||||
@@ -3104,7 +3104,7 @@ ble_gap_disc_ext_validate(uint8_t own_addr_type)
|
||||
return BLE_HS_EALREADY;
|
||||
}
|
||||
|
||||
if (!ble_hs_enabled()) {
|
||||
if (!ble_hs_is_enabled()) {
|
||||
return BLE_HS_EDISABLED;
|
||||
}
|
||||
|
||||
@@ -3588,7 +3588,7 @@ ble_gap_ext_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!ble_hs_enabled()) {
|
||||
if (!ble_hs_is_enabled()) {
|
||||
return BLE_HS_EDISABLED;
|
||||
}
|
||||
|
||||
@@ -3715,7 +3715,7 @@ ble_gap_connect(uint8_t own_addr_type, const ble_addr_t *peer_addr,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!ble_hs_enabled()) {
|
||||
if (!ble_hs_is_enabled()) {
|
||||
rc = BLE_HS_EDISABLED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ ble_hs_clear_rx_queue(void)
|
||||
}
|
||||
|
||||
int
|
||||
ble_hs_enabled(void)
|
||||
ble_hs_is_enabled(void)
|
||||
{
|
||||
return ble_hs_enabled_state == BLE_HS_ENABLED_STATE_ON;
|
||||
}
|
||||
@@ -442,7 +442,7 @@ ble_hs_timer_reset(uint32_t ticks)
|
||||
{
|
||||
int rc;
|
||||
|
||||
if (!ble_hs_enabled()) {
|
||||
if (!ble_hs_is_enabled()) {
|
||||
ble_npl_callout_stop(&ble_hs_timer);
|
||||
} else {
|
||||
rc = ble_npl_callout_reset(&ble_hs_timer, ticks);
|
||||
|
||||
Reference in New Issue
Block a user