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 PeterC1965 committed Aug 19, 2024
1 parent 2e1f99b commit 8deab3d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,8 @@ void Instance::HandleModifyForecastRequest(HandlerContext & ctx, const Commands:
// NominalPower is only relevant if PFR is supported
if (HasFeature(Feature::kPowerForecastReporting))
{
if (!slotAdjustment.nominalPower.HasValue() ||
!slot.minPowerAdjustment.HasValue() || !slot.maxPowerAdjustment.HasValue() ||
slotAdjustment.nominalPower.Value() < slot.minPowerAdjustment.Value() ||
if (!slotAdjustment.nominalPower.HasValue() || !slot.minPowerAdjustment.HasValue() ||
!slot.maxPowerAdjustment.HasValue() || slotAdjustment.nominalPower.Value() < slot.minPowerAdjustment.Value() ||
slotAdjustment.nominalPower.Value() > slot.maxPowerAdjustment.Value())
{
ChipLogError(Zcl, "DEM: Bad nominalPower");
Expand Down

0 comments on commit 8deab3d

Please sign in to comment.