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

Commit 727d001a authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Gerrit Code Review
Browse files

Merge "le_audio: Dump first active group"

parents 6f66ca77 c3c71bca
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -2769,8 +2769,19 @@ void LeAudioDeviceGroups::Cleanup(void) {
}

void LeAudioDeviceGroups::Dump(int fd, int active_group_id) {
  /* Dump first active group */
  for (auto& g : groups_) {
    if (g->group_id_ == active_group_id) {
      g->Dump(fd, active_group_id);
      break;
    }
  }

  /* Dump non active group */
  for (auto& g : groups_) {
    if (g->group_id_ != active_group_id) {
      g->Dump(fd, active_group_id);
    }
  }
}