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

Commit 52961267 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "gatt_api: Do not attempt to connect to an empty address." into main am: 147ddaf0

parents 5727cec0 147ddaf0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1468,6 +1468,11 @@ bool GATT_Connect(tGATT_IF gatt_if, const RawAddress& bd_addr, tBLE_ADDR_TYPE ad
    return false;
  }

  if (bd_addr == RawAddress::kEmpty) {
    log::error("Unsupported empty address, gatt_if={}", gatt_if);
    return false;
  }

  if (opportunistic) {
    log::info("Registered for opportunistic connection gatt_if={}", gatt_if);
    return true;