Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and rbultman committed Jan 18, 2024
1 parent 3db7ea6 commit 70dd57c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,8 @@ void Instance::HandleSetCookingParameters(HandlerContext & ctx, const Commands::
ChipLogError(Zcl, "Microwave Oven Control: Failed to set cooking parameters, all command fields are missing "));

// count of supported watt levels must greater than 0
VerifyOrExit(
mSupportedWattLevels > 0, status = Status::Failure;
ChipLogError(Zcl, "Microwave Oven Control: Failed to set wattSettingIndex, count of supported watt levels is 0"));
VerifyOrExit(mSupportedWattLevels > 0, status = Status::Failure; ChipLogError(
Zcl, "Microwave Oven Control: Failed to set wattSettingIndex, count of supported watt levels is 0"));

reqWattSettingIndex = wattSettingIndex.ValueOr(mSupportedWattLevels - 1);
VerifyOrExit(reqWattSettingIndex <= (mSupportedWattLevels - 1), status = Status::ConstraintError;
Expand Down

0 comments on commit 70dd57c

Please sign in to comment.