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

Commit 7523bf58 authored by Chris Manton's avatar Chris Manton
Browse files

Re-log bta_dm_pm_stop_timer_by_index

Bug: 188074901
Tag: #refactor
Test: gd/cert/run

Change-Id: I39d371defa32d35a344ad0ad37734763f722442a
parent c0a80833
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -304,8 +304,10 @@ static void bta_dm_pm_stop_timer_by_index(tBTA_PM_TIMER* p_timer,
    return;
  } /* The timer was not scheduled */

  CHECK(p_timer->in_use);
  CHECK(p_timer->active > 0);
  ASSERT_LOG(p_timer->in_use,
             "Timer was not scheduled p_timer->srvc_id[timer_idx]:%hhu",
             p_timer->srvc_id[timer_idx]);
  ASSERT_LOG(p_timer->active > 0, "No tasks on timer are active");

  p_timer->srvc_id[timer_idx] = BTA_ID_MAX;
  /* NOTE: pm_action[timer_idx] intentionally not reset */