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

Commit 5562f9e0 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Use local constant for service/low_energy_client am: 086caa2d

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

Change-Id: I9a5596554f4a6b8f2c58dc0750a25bc1a7ebbb45
parents 24b07972 086caa2d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@
using std::lock_guard;
using std::mutex;

constexpr int kPhyLe1MbMask = 1;

namespace bluetooth {

// LowEnergyClient implementation
@@ -59,7 +61,7 @@ bool LowEnergyClient::Connect(const std::string& address, bool is_direct) {

  bt_status_t status =
      hal::BluetoothGattInterface::Get()->GetClientHALInterface()->connect(
          client_id_, bda, is_direct, BT_TRANSPORT_LE, false, PHY_LE_1M_MASK);
          client_id_, bda, is_direct, BT_TRANSPORT_LE, false, kPhyLe1MbMask);
  if (status != BT_STATUS_SUCCESS) {
    LOG(ERROR) << "HAL call to connect failed";
    return false;