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

Commit 100d432d authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Re-log bta_dm_pm_stop_timer_by_index am: 7523bf58

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1769413

Change-Id: I83f53291e953496dc88e1e8849ed65e1aa2fa196
parents 4b20649a 7523bf58
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 */