Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarkov committed Jul 25, 2024
1 parent 215e4fe commit 645c625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ class DLL_EXPORT IdentificationDeclaration
{
ChipLogDetail(AppServer, "\tpairing hint: %d", mPairingHint);
}

if (mNoPasscode)
{
ChipLogDetail(AppServer, "\tno passcode: true");
Expand Down Expand Up @@ -395,7 +394,7 @@ class DLL_EXPORT CommissionerDeclaration
}
if (mCancelPasscode)
{
ChipLogDetail(AppServer, "\tQR code displayed: true");
ChipLogDetail(AppServer, "\tPasscode cancelled: true");
}
ChipLogDetail(AppServer, "---- Commissioner Declaration End ----");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ uint32_t CommissionerDeclaration::WritePayload(uint8_t * payloadBuffer, size_t p
LogErrorOnFailure(err));
VerifyOrExit(CHIP_NO_ERROR == (err = writer.PutBoolean(chip::TLV::ContextTag(kQRCodeDisplayedTag), mQRCodeDisplayed)),
LogErrorOnFailure(err));
VerifyOrExit(CHIP_NO_ERROR == (err = writer.PutBoolean(chip::TLV::ContextTag(kCancelPasscodeTag), mCancelPasscode)),
LogErrorOnFailure(err));

VerifyOrExit(CHIP_NO_ERROR == (err = writer.EndContainer(outerContainerType)), LogErrorOnFailure(err));
VerifyOrExit(CHIP_NO_ERROR == (err = writer.Finalize()), LogErrorOnFailure(err));
Expand Down

0 comments on commit 645c625

Please sign in to comment.