Skip to content

Commit

Permalink
Merge pull request #197 from AbdelrhmanWaheed/bug-fix/checkOnReservat…
Browse files Browse the repository at this point in the history
…ionProfile

reservation feature profile support
  • Loading branch information
c-jimenez authored Mar 12, 2024
2 parents 65731ea + c9b45f5 commit 6dceb3a
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 6dceb3a

Please sign in to comment.