Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Soumya Subramanya <[email protected]>
  • Loading branch information
SNSubramanya committed Jan 3, 2024
1 parent c7ed208 commit 76d5631
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/ocpp/v201/device_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,14 @@ DeviceModel::get_custom_report_data(const std::optional<std::vector<ComponentVar
!v.variable.value().instance.has_value() and
variable_.name == v.variable.value().name;
}) != component_variables.value().end() // if variable instance is missing
or std::find_if(component_variables.value().begin(), component_variables.value().end(),
[component_, variable_](ComponentVariable v) {
return !v.component.evse.has_value() and (component_.name == v.component.name) and (component_.instance == v.component.instance)
and (variable_ == v.variable);
}) != component_variables.value().end() // B08.FR.23
or
std::find_if(component_variables.value().begin(), component_variables.value().end(),
[component_, variable_](ComponentVariable v) {
return !v.component.evse.has_value() and (component_.name == v.component.name) and
(component_.instance == v.component.instance) and (variable_ == v.variable);
}) != component_variables.value().end() // B08.FR.23

) {

EVLOG_info << "found component" << component_;

ReportData report_data;
report_data.component = component_;
report_data.variable = variable_;
Expand Down

0 comments on commit 76d5631

Please sign in to comment.