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

Commit 36e97035 authored by Chris Manton's avatar Chris Manton
Browse files

Use proper accessor methods bta::dm::main::bta_dm_search_get_state

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

Change-Id: I19aec68482ddf0cb158246bb9005217a09ed1b40
parent 0eddf9d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -62,10 +62,10 @@ uint8_t bta_dm_search_get_state() { return bta_dm_search_cb.state; }
 ******************************************************************************/
bool bta_dm_search_sm_execute(BT_HDR_RIGID* p_msg) {
  APPL_TRACE_EVENT("bta_dm_search_sm_execute state:%d, event:0x%x",
                   bta_dm_search_cb.state, p_msg->event);
                   bta_dm_search_get_state(), p_msg->event);

  tBTA_DM_MSG* message = (tBTA_DM_MSG*)p_msg;
  switch (bta_dm_search_cb.state) {
  switch (bta_dm_search_get_state()) {
    case BTA_DM_SEARCH_IDLE:
      switch (p_msg->event) {
        case BTA_DM_API_SEARCH_EVT: