Skip to content

Commit

Permalink
Restore the GetGroupMembership group id logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Oct 11, 2021
1 parent c7fc0e6 commit 342381b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/clusters/groups-server/groups-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ bool emberAfGroupsClusterGetGroupMembershipCallback(app::CommandHandler * comman
uint8_t listLen = 0;
CHIP_ERROR err = CHIP_NO_ERROR;

emberAfGroupsClusterPrintln("RX: GetGroupMembership");
emberAfGroupsClusterPrint("RX: GetGroupMembership [");

// For all networks, Get Group Membership commands may be sent either
// unicast or broadcast (removing the ZLL-specific limitation to unicast).
Expand Down Expand Up @@ -278,6 +278,7 @@ bool emberAfGroupsClusterGetGroupMembershipCallback(app::CommandHandler * comman
while (iter.Next())
{
GroupId groupId = iter.GetValue();
emberAfGroupsClusterPrint(" 0x%02" PRIx16, groupId);
for (j = 0; j < EMBER_BINDING_TABLE_SIZE; j++)
{
EmberBindingTableEntry entry;
Expand All @@ -297,6 +298,8 @@ bool emberAfGroupsClusterGetGroupMembershipCallback(app::CommandHandler * comman
err = iter.GetStatus();
}

emberAfGroupsClusterPrintln("]");

if (err != CHIP_NO_ERROR)
{
status = emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_MALFORMED_COMMAND);
Expand Down

0 comments on commit 342381b

Please sign in to comment.