You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/08 22:54:52 UTC
[02/22] incubator-mynewt-core git commit: Tx Power Service
implementation
Tx Power Service implementation
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/b4ae19f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b4ae19f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b4ae19f0
Branch: refs/heads/develop
Commit: b4ae19f09222d57f5d446d0b163d79ace8725f11
Parents: 626b219
Author: Brian Giori <br...@gmail.com>
Authored: Thu Jul 28 09:37:02 2016 -0700
Committer: Brian Giori <br...@gmail.com>
Committed: Thu Jul 28 09:37:02 2016 -0700
----------------------------------------------------------------------
net/nimble/host/profiles/tps/src/ble_svc_tps.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b4ae19f0/net/nimble/host/profiles/tps/src/ble_svc_tps.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/profiles/tps/src/ble_svc_tps.c b/net/nimble/host/profiles/tps/src/ble_svc_tps.c
index abcd11e..7a5bd08 100644
--- a/net/nimble/host/profiles/tps/src/ble_svc_tps.c
+++ b/net/nimble/host/profiles/tps/src/ble_svc_tps.c
@@ -59,6 +59,7 @@ ble_svc_tps_access(uint16_t conn_handle, uint16_t attr_handle,
struct ble_gatt_access_ctxt *ctxt, void *arg)
{
assert(ctxt->chr == &ble_svc_tps_defs[0].characteristics[0]);
+ int rc;
switch(ctxt->op) {
case BLE_GATT_ACCESS_OP_READ_CHR:
ble_hci_util_read_adv_tx_pwr(&ble_svc_tps_tx_power_level);
@@ -87,7 +88,7 @@ ble_svc_tps_init(struct ble_hs_cfg *cfg)
return rc;
}
- rc = ble_gatts_add_svcs(ble_svc_lls_defs);
+ rc = ble_gatts_add_svcs(ble_svc_tps_defs);
if (rc != 0) {
return rc;
}