Skip to content

Commit

Permalink
minor update to kick ci
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Jul 18, 2024
1 parent 8dffdf8 commit 7f6b56e
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions src/app/util/ember-compatibility-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,8 @@ CHIP_ERROR ReadSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, b
uint8_t dataLength = gEmberAttributeIOBufferSpan[0];
if (dataLength == 0xFF)
{
if (isNullable)
{
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
return CHIP_ERROR_INCORRECT_STATE;
}
VerifyOrReturnError(isNullable, CHIP_ERROR_INCORRECT_STATE);
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
Expand All @@ -477,14 +471,8 @@ CHIP_ERROR ReadSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, b
memcpy(&dataLength, gEmberAttributeIOBufferSpan.data(), sizeof(dataLength));
if (dataLength == 0xFFFF)
{
if (isNullable)
{
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
return CHIP_ERROR_INCORRECT_STATE;
}
VerifyOrReturnError(isNullable, CHIP_ERROR_INCORRECT_STATE);
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
Expand All @@ -498,14 +486,8 @@ CHIP_ERROR ReadSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, b
uint8_t dataLength = gEmberAttributeIOBufferSpan[0];
if (dataLength == 0xFF)
{
if (isNullable)
{
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
return CHIP_ERROR_INCORRECT_STATE;
}
VerifyOrReturnError(isNullable, CHIP_ERROR_INCORRECT_STATE);
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
Expand All @@ -519,14 +501,8 @@ CHIP_ERROR ReadSingleClusterData(const SubjectDescriptor & aSubjectDescriptor, b
memcpy(&dataLength, gEmberAttributeIOBufferSpan.data(), sizeof(dataLength));
if (dataLength == 0xFFFF)
{
if (isNullable)
{
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
return CHIP_ERROR_INCORRECT_STATE;
}
VerifyOrReturnError(isNullable, CHIP_ERROR_INCORRECT_STATE);
ReturnErrorOnFailure(writer->PutNull(tag));
}
else
{
Expand Down

0 comments on commit 7f6b56e

Please sign in to comment.