rename ble_hs_enabled --> ble_hs_is_enabled

This commit is contained in:
Christopher Collins
2018-11-21 14:47:27 -08:00
committed by ccollins476ad
parent 68a7f7815b
commit 15b1e4345c
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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.
+4 -4
View File
@@ -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;
}
+2 -2
View File
@@ -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);