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

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

Merge "csis: Fix notification of device available on startup" into main am: afe6d0e6

parents 2b1b51c6 afe6d0e6
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -233,16 +233,14 @@ class CsisClientImpl : public CsisClient {
      csis_group->SetUuid(uuid);
    }

    int rank = bluetooth::csis::CSIS_RANK_INVALID;
    auto csis_instance = device->GetCsisInstanceByGroupId(group_id);
    if (!csis_instance) {
      LOG_ERROR(" device: %s, does not have the rank info for group (id: %d )",
                ADDRESS_TO_LOGGABLE_CSTR(address), group_id);
      return;
    if (csis_instance) {
      rank = csis_instance->GetRank();
    }

    callbacks_->OnDeviceAvailable(device->addr, csis_group->GetGroupId(),
                                  csis_group->GetDesiredSize(),
                                  csis_instance->GetRank(), uuid);
                                  csis_group->GetDesiredSize(), rank, uuid);
  }

  void Connect(const RawAddress& address) override {