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

Commit 067f8faf authored by Chris Manton's avatar Chris Manton
Browse files

btm_loghistory: HeadsetInterface::PhoneStateChange

Towards loggable code

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

Change-Id: I3aee041f42df8446ee6853f2a6c9ee356c808b27
parent 134b3014
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1149,7 +1149,7 @@ bt_status_t HeadsetInterface::PhoneStateChange(
  /* if all indicators are 0, send end call and return */
  /* if all indicators are 0, send end call and return */
  if (num_active == 0 && num_held == 0 &&
  if (num_active == 0 && num_held == 0 &&
      call_setup_state == BTHF_CALL_STATE_IDLE) {
      call_setup_state == BTHF_CALL_STATE_IDLE) {
    VLOG(1) << __func__ << ": call ended";
    BTM_LogHistory("HFP", raw_address, "Call Ended");
    BTA_AgResult(control_block.handle, BTA_AG_END_CALL_RES,
    BTA_AgResult(control_block.handle, BTA_AG_END_CALL_RES,
                 tBTA_AG_RES_DATA::kEmpty);
                 tBTA_AG_RES_DATA::kEmpty);
    /* if held call was present, reset that as well */
    /* if held call was present, reset that as well */