diff --git a/main/ble.c b/main/ble.c index f04f241..f28bdd5 100644 --- a/main/ble.c +++ b/main/ble.c @@ -37,14 +37,11 @@ typedef struct { uint16_t conn_handle; } barback_ble_t; -static barback_ble_t conn_handles[CONFIG_NIMBLE_MAX_CONNECTIONS]; - static uint16_t pump_duration_svc_val_handles[4]; static event_callback_handle_t callback_handlers[CONFIG_CACO_MAX_SERVICES] = { 0 }; static int ble_gap_event(struct ble_gap_event *event, void *arg); -static int ble_svc_access(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg); static int svc_access_system(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg); static int barback_ble_char_access(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg); @@ -298,7 +295,6 @@ static void ble_advertise(void) { static int ble_gap_event(struct ble_gap_event *event, void *arg) { switch (event->type) { case BLE_GAP_EVENT_DISC: { - struct ble_gap_conn_desc desc; struct ble_hs_adv_fields fields; ESP_ERROR_CHECK(ble_hs_adv_parse_fields(&fields, event->disc.data, event->disc.length_data));