variables declared at top of function scope

X-Original-Commit: ef3024f99d6b805e37b1a8e91057e4992e98b845
This commit is contained in:
Brian Giori
2016-08-01 14:03:38 -07:00
parent e00789e404
commit 17b457bb1d
+3 -1
View File
@@ -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);