@@ -324,7 +324,8 @@ void Instance::HandlePowerAdjustRequest(HandlerContext & ctx, const Commands::Po
324
324
return ;
325
325
}
326
326
327
- DataModel::Nullable<Structs::PowerAdjustCapabilityStruct::Type> powerAdjustmentCapabilityStruct = mDelegate .GetPowerAdjustmentCapability ();
327
+ DataModel::Nullable<Structs::PowerAdjustCapabilityStruct::Type> powerAdjustmentCapabilityStruct =
328
+ mDelegate .GetPowerAdjustmentCapability ();
328
329
if (powerAdjustmentCapabilityStruct.IsNull ())
329
330
{
330
331
ChipLogError (Zcl, " DEM: powerAdjustmentCapabilityStruct IsNull" );
@@ -693,8 +694,7 @@ void Instance::HandleModifyForecastRequest(HandlerContext & ctx, const Commands:
693
694
// NominalPower is only relevant if PFR is supported
694
695
if (HasFeature (Feature::kPowerForecastReporting ))
695
696
{
696
- if (!slot.minPowerAdjustment .HasValue () ||
697
- !slot.maxPowerAdjustment .HasValue () ||
697
+ if (!slot.minPowerAdjustment .HasValue () || !slot.maxPowerAdjustment .HasValue () ||
698
698
slotAdjustment.nominalPower .Value () < slot.minPowerAdjustment .Value () ||
699
699
slotAdjustment.nominalPower .Value () > slot.maxPowerAdjustment .Value ())
700
700
{
@@ -704,8 +704,7 @@ void Instance::HandleModifyForecastRequest(HandlerContext & ctx, const Commands:
704
704
}
705
705
}
706
706
707
- if (!slot.minDurationAdjustment .HasValue () ||
708
- !slot.maxDurationAdjustment .HasValue () ||
707
+ if (!slot.minDurationAdjustment .HasValue () || !slot.maxDurationAdjustment .HasValue () ||
709
708
slotAdjustment.duration < slot.minDurationAdjustment .Value () ||
710
709
slotAdjustment.duration > slot.maxDurationAdjustment .Value ())
711
710
{
@@ -748,7 +747,7 @@ void Instance::HandleRequestConstraintBasedForecast(HandlerContext & ctx,
748
747
}
749
748
750
749
uint32_t currentUtcTime = 0 ;
751
- status = GetCurrentUtcTime (currentUtcTime);
750
+ status = GetCurrentUtcTime (currentUtcTime);
752
751
if (status != Status::Success)
753
752
{
754
753
ChipLogError (Zcl, " DEM: Forecast is Null" );
@@ -848,7 +847,7 @@ void Instance::HandleRequestConstraintBasedForecast(HandlerContext & ctx,
848
847
849
848
void Instance::HandleCancelRequest (HandlerContext & ctx, const Commands::CancelRequest::DecodableType & commandData)
850
849
{
851
- Status status = Status::Failure;
850
+ Status status = Status::Failure;
852
851
DataModel::Nullable<Structs::ForecastStruct::Type> forecast = mDelegate .GetForecast ();
853
852
854
853
if (forecast.IsNull ())
0 commit comments