Skip to content

Commit

Permalink
return error
Browse files Browse the repository at this point in the history
  • Loading branch information
stingchang committed Oct 24, 2024
1 parent b6baf0e commit fe1949f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chef/common/chef-laundry-washer-mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ chip::Protocols::InteractionModel::Status chefLaundryWasherModeWriteCallback(chi
uint8_t * buffer)
{
VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1
VerifyOrDie(gLaundryWasherModeInstance != nullptr);
VerifyOrReturnError(gLaundryWasherModeInstance != nullptr, chip::Protocols::InteractionModel::Status::Failure);

chip::Protocols::InteractionModel::Status ret;
chip::AttributeId attributeId = attributeMetadata->attributeId;
Expand Down

0 comments on commit fe1949f

Please sign in to comment.