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:55:00 UTC
[10/22] incubator-mynewt-core git commit: variables declared at top
of function scope
variables declared at top of function scope
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/ef3024f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/ef3024f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/ef3024f9
Branch: refs/heads/develop
Commit: ef3024f99d6b805e37b1a8e91057e4992e98b845
Parents: 98caf9f
Author: Brian Giori <br...@gmail.com>
Authored: Mon Aug 1 14:03:38 2016 -0700
Committer: Brian Giori <br...@gmail.com>
Committed: Mon Aug 1 14:03:38 2016 -0700
----------------------------------------------------------------------
net/nimble/host/profiles/tps/src/ble_svc_tps.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/ef3024f9/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 e354eec..fbbd0b5 100644
--- a/net/nimble/host/profiles/tps/src/ble_svc_tps.c
+++ b/net/nimble/host/profiles/tps/src/ble_svc_tps.c
@@ -58,8 +58,10 @@ static int
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;
+
+ assert(ctxt->chr == &ble_svc_tps_defs[0].characteristics[0]);
+
switch (ctxt->op) {
case BLE_GATT_ACCESS_OP_READ_CHR:
ble_hci_util_read_adv_tx_pwr(&ble_svc_tps_tx_power_level);