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

Commit abfadfd6 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Automerger Merge Worker
Browse files

Fix incorrect enum comparison of LE close reason am: 9e234815

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

Change-Id: I31f123aa684ad360f90a885086f72a28cbf9c786
parents 7c54735f 9e234815
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1690,7 +1690,7 @@ void bta_hh_gatt_close(tBTA_HH_DEV_CB* p_cb, const tBTA_HH_DATA* p_data) {
            gatt_disconnection_reason_text(le_close->reason).c_str());
        break;
    }
  } else if (kBTA_HH_LE_RECONN && le_close->reason == HCI_ERR_CONNECTION_TOUT) {
  } else if (kBTA_HH_LE_RECONN && le_close->reason == GATT_CONN_TIMEOUT) {
    bta_hh_le_add_dev_bg_conn(p_cb, false);
  }
}