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

Commit 524c8562 authored by Zach Johnson's avatar Zach Johnson
Browse files

Pull BTA_SYS_EVT_STACK_ENABLED_EVT out of BTM_reset_complete

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: If02167839559adda1e95ab9285eba2f8d360bc16
parent 836c24d3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -237,6 +237,8 @@ static void event_start_up_stack(UNUSED_ATTR void* context) {
  }
  BTM_reset_complete();

  send_bta_sys_hw_event(BTA_SYS_EVT_STACK_ENABLED_EVT);

  if (future_await(local_hack_future) != FUTURE_SUCCESS) {
    LOG_ERROR("%s failed to start up the stack", __func__);
    stack_is_running = true;  // So stack shutdown actually happens
+0 −1
Original line number Diff line number Diff line
@@ -215,7 +215,6 @@ void BTM_reset_complete() {
                 btm_cb.cfg.pin_code_len);

  decode_controller_support();
  send_bta_sys_hw_event(BTA_SYS_EVT_STACK_ENABLED_EVT);
}

/*******************************************************************************