mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-08 23:57:21 +00:00
variables declared at top of function scope
X-Original-Commit: ef3024f99d6b805e37b1a8e91057e4992e98b845
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user