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:53 UTC
[03/22] incubator-mynewt-core git commit: updated comments and error
return value
updated comments and error return value
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/d0b6d35a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/d0b6d35a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/d0b6d35a
Branch: refs/heads/develop
Commit: d0b6d35a879e02dc5bb9c734091c111d1dc10c07
Parents: b4ae19f
Author: Brian Giori <br...@gmail.com>
Authored: Thu Jul 28 09:42:43 2016 -0700
Committer: Brian Giori <br...@gmail.com>
Committed: Thu Jul 28 09:44:06 2016 -0700
----------------------------------------------------------------------
net/nimble/host/profiles/tps/src/ble_svc_tps.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/d0b6d35a/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 7a5bd08..3e2bf42 100644
--- a/net/nimble/host/profiles/tps/src/ble_svc_tps.c
+++ b/net/nimble/host/profiles/tps/src/ble_svc_tps.c
@@ -36,7 +36,7 @@ static const struct ble_gatt_svc_def ble_svc_tps_defs[] = {
.type = BLE_GATT_SVC_TYPE_PRIMARY,
.uuid128 = BLE_UUID16(BLE_SVC_TPS_UUID16),
.characteristics = (struct ble_gatt_chr_def[]) { {
- /*** Characteristic: Alert Level. */
+ /*** Characteristic: Tx Power Level. */
.uuid128 = BLE_UUID16(BLE_SVC_TPS_CHR_UUID16_TX_POWER_LEVEL),
.access_cb = ble_svc_tps_access,
.flags = BLE_GATT_CHR_F_READ,
@@ -69,15 +69,14 @@ ble_svc_tps_access(uint16_t conn_handle, uint16_t attr_handle,
default:
assert(0);
- break;
+ return BLE_ATT_ERR_UNLIKELY;
}
return 0;
}
/**
- * Initialize the TPS. The developer must specify the event function
- * callback for the TPS to function properly.
+ * Initialize the TPS
*/
int
ble_svc_tps_init(struct ble_hs_cfg *cfg)