Skip to content

Commit

Permalink
Correction related to clang format
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Suess <[email protected]>
  • Loading branch information
Matthias-NIDEC committed Oct 11, 2023
1 parent f34e89d commit 80b24dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ocpp/v16/charge_point_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1541,14 +1541,14 @@ bool ChargePointConfiguration::isConnectorPhaseRotationValid(std::string str) {
str.erase(std::remove_if(str.begin(), str.end(), isspace), str.end());
boost::split(elements, str, boost::is_any_of(","));

//Filter per element of type 0.NotApplicable, 1.NotApplicable, or 0.Unknown etc
// Filter per element of type 0.NotApplicable, 1.NotApplicable, or 0.Unknown etc
for (int connector_id = 0; connector_id <= this->getNumberOfConnectors(); connector_id++) {
std::string myNotApplicable=std::to_string(connector_id)+".NotApplicable";
std::string myNotDefined=std::to_string(connector_id)+".Unknown";
elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end());
elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end());
std::string myNotApplicable=std::to_string(connector_id)+".NotApplicable";
std::string myNotDefined=std::to_string(connector_id)+".Unknown";
elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end());
elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end());
};
//if all elemens are hit, accept it, else check the remaining
// if all elemens are hit, accept it, else check the remaining
if (elements.size() == 0 ){ return true;};

for (const std::string& e : elements) {
Expand Down

0 comments on commit 80b24dc

Please sign in to comment.