renamed on_gap_event to on_gap_disconnect to better describe functionality
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/d6343b50 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d6343b50 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d6343b50 Branch: refs/heads/sterly_refactor Commit: d6343b5024318a3948dd00e2c8d8e82f75ae3c69 Parents: bcca6cc Author: Brian Giori <[email protected]> Authored: Fri Jul 29 09:46:08 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Wed Aug 3 14:57:50 2016 -0700 ---------------------------------------------------------------------- net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h | 2 +- net/nimble/host/profiles/lls/src/ble_svc_lls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6343b50/net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h ---------------------------------------------------------------------- diff --git a/net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h b/net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h index 637dec8..8dee779 100644 --- a/net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h +++ b/net/nimble/host/profiles/lls/include/profiles/lls/ble_svc_lls.h @@ -34,7 +34,7 @@ typedef int ble_svc_lls_event_fn(uint8_t alert_level); uint8_t ble_svc_lls_alert_level_get(void); int ble_svc_lls_alert_level_set(uint8_t alert_level); -void ble_svc_lls_on_gap_event(int reason); +void ble_svc_lls_on_gap_disconnect(int reason); int ble_svc_lls_init(struct ble_hs_cfg *cfg, uint8_t initial_alert_level, http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d6343b50/net/nimble/host/profiles/lls/src/ble_svc_lls.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/profiles/lls/src/ble_svc_lls.c b/net/nimble/host/profiles/lls/src/ble_svc_lls.c index 9a8e9db..c4be140 100644 --- a/net/nimble/host/profiles/lls/src/ble_svc_lls.c +++ b/net/nimble/host/profiles/lls/src/ble_svc_lls.c @@ -129,7 +129,7 @@ ble_svc_lls_access(uint16_t conn_handle, uint16_t attr_handle, * event. */ void -ble_svc_lls_on_gap_event(int reason) +ble_svc_lls_on_gap_disconnect(int reason) { if (reason == BLE_HS_HCI_ERR(BLE_ERR_CONN_SPVN_TMO)) { cb_fn(ble_svc_lls_alert_level);
