Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e733427 authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "gap_ble: Remove unused service_handle" into main

parents 2daf04af 4b6e7893
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -399,8 +399,6 @@ bool accept_client_operation(const RawAddress& peer_bda, uint16_t uuid,
 *
 ******************************************************************************/
void gap_attr_db_init(void) {
  uint16_t service_handle;

  /* Fill our internal UUID with a fixed pattern 0x82 */
  std::array<uint8_t, Uuid::kNumBytes128> tmp;
  tmp.fill(0x82);
@@ -445,7 +443,6 @@ void gap_attr_db_init(void) {
  /* Add a GAP service */
  GATTS_AddService(gatt_if, service,
                   sizeof(service) / sizeof(btgatt_db_element_t));
  service_handle = service[0].attribute_handle;

  gatt_attr[0].uuid = GATT_UUID_GAP_DEVICE_NAME;
  gatt_attr[0].handle = service[1].attribute_handle;