Skip to content

Commit

Permalink
check on reservation feature profile supported or not before make res…
Browse files Browse the repository at this point in the history
…ervation for connector , octt test case 050_4
  • Loading branch information
Abdelrhman_Elshal94 committed Mar 11, 2024
1 parent 65731ea commit c9b45f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chargepoint/reservation/ReservationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ bool ReservationManager::handleMessage(const ocpp::messages::ReserveNowReq& requ
if (connector)
{
// Check if reservation is allowed on connector
if ((request.connectorId != 0) || ((request.connectorId == 0) && m_ocpp_config.reserveConnectorZeroSupported()))
if (((request.connectorId != 0) || ((request.connectorId == 0) && m_ocpp_config.reserveConnectorZeroSupported()))
&&( m_ocpp_config.supportedFeatureProfiles().find("Reservation")!= std::string::npos) )
{
std::lock_guard<std::mutex> lock(connector->mutex);

Expand Down

0 comments on commit c9b45f5

Please sign in to comment.