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 liangpy4 committed Jan 25, 2024
1 parent 26361b6 commit 1a4ca6e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ void Instance::HandleSetCookingParameters(HandlerContext & ctx, const Commands::
mSupportedWattLevels > 0,
ChipLogError(Zcl, "Microwave Oven Control: Failed to set wattSettingIndex, count of supported watt levels is 0"));


reqWattSettingIndex = wattSettingIndex.ValueOr(static_cast<uint8_t>(mSupportedWattLevels - 1));
VerifyOrExit(reqWattSettingIndex <= static_cast<uint8_t>(mSupportedWattLevels - 1), status = Status::ConstraintError;
ChipLogError(Zcl, "Microwave Oven Control: Failed to set wattSettingIndex, wattSettingIndex is out of range"));
Expand Down

0 comments on commit 1a4ca6e

Please sign in to comment.