diff --git a/lib/ocpp/v16/charge_point_configuration.cpp b/lib/ocpp/v16/charge_point_configuration.cpp index b4938b6df..94ef72068 100644 --- a/lib/ocpp/v16/charge_point_configuration.cpp +++ b/lib/ocpp/v16/charge_point_configuration.cpp @@ -1543,19 +1543,19 @@ bool ChargePointConfiguration::isConnectorPhaseRotationValid(std::string str) { // 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 (elements.size() == 0) { - return true; + return true; }; for (const std::string& e : elements) { if (e.size() != 5) { - return false; + return false; } try { auto connector = std::stoi(e.substr(0, 1));