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

Commit 94307684 authored by Chris Manton's avatar Chris Manton
Browse files

Catch and release ignored btif gatt events

Prevents false logging errors

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Iefd5b0c748f61f79c87d23b2da37f285b4df1a96
parent eedf0d82
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -134,9 +134,6 @@ static void btif_gattc_upstreams_evt(uint16_t event, char* p_param) {

  tBTA_GATTC* p_data = (tBTA_GATTC*)p_param;
  switch (event) {
    case BTA_GATTC_DEREG_EVT:
      break;

    case BTA_GATTC_EXEC_EVT: {
      HAL_CBACK(bt_gatt_callbacks, client->execute_write_cb,
                p_data->exec_cmpl.conn_id, p_data->exec_cmpl.status);
@@ -193,14 +190,11 @@ static void btif_gattc_upstreams_evt(uint16_t event, char* p_param) {
    }

    case BTA_GATTC_ACL_EVT:
      LOG_INFO("BTA_GATTC_ACL_EVT: status = %d", p_data->status);
      /* Ignore for now */
      break;

    case BTA_GATTC_DEREG_EVT:
    case BTA_GATTC_SEARCH_RES_EVT:
      break;

    case BTA_GATTC_CANCEL_OPEN_EVT:
    case BTA_GATTC_SRVC_DISC_DONE_EVT:
      LOG_DEBUG("Ignoring event (%d)", event);
      break;

    case BTA_GATTC_CFG_MTU_EVT: {
@@ -234,7 +228,7 @@ static void btif_gattc_upstreams_evt(uint16_t event, char* p_param) {
      break;

    default:
      LOG_ERROR("%s: Unhandled event (%d)!", __func__, event);
      LOG_ERROR("Unhandled event (%d)!", event);
      break;
  }
}