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

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

Properly type bta_ag_at_hsp_cback::tBTA_AG_EVT

Careful...integer width differs

Towards readable code

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

Change-Id: Ia9c3051547825d6e48f55345ece973160e2aa429
parent c804141d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -604,7 +604,11 @@ void bta_ag_at_hsp_cback(tBTA_AG_SCB* p_scb, uint16_t command_id,
  strlcpy(val.str, p_arg, sizeof(val.str));

  /* call callback with event */
  (*bta_ag_cb.p_cback)(static_cast<tBTA_AG_EVT>(command_id), (tBTA_AG*)&val);
  if (command_id & 0xff00) {
    LOG_WARN("Received value that exceeds data type - lost information");
  }
  tBTA_AG_EVT event = static_cast<tBTA_AG_EVT>(command_id);
  (*bta_ag_cb.p_cback)(event, (tBTA_AG*)&val);
}

static void remove_spaces(char* str) {