Skip to content

Commit

Permalink
Break right away when rename index found
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Feb 9, 2024
1 parent c8cd2a2 commit 57b89ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ bool AudioOutputManager::HandleRenameOutput(const uint8_t & index, const chip::C
const size_t len = std::min(mBufMax, name.size());
memcpy(this->Data(index), name.data(), len);
output.name = chip::CharSpan(this->Data(index), len);
return audioOutputRenamed;
}
}

Expand All @@ -83,6 +84,7 @@ bool AudioOutputManager::HandleSelectOutput(const uint8_t & index)
{
audioOutputSelected = true;
mCurrentOutput = index;
return audioOutputSelected;
}
}

Expand Down

0 comments on commit 57b89ee

Please sign in to comment.