From d79bf58c48ded42219acb455aa336652ab33b39a Mon Sep 17 00:00:00 2001 From: "Maaike Zijderveld, iolar" Date: Fri, 29 Nov 2024 16:18:04 +0100 Subject: [PATCH] Remove check if reservation ctrlr is enabled because that can be changed runtime (readwrite). Signed-off-by: Maaike Zijderveld, iolar --- lib/ocpp/v201/charge_point_callbacks.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ocpp/v201/charge_point_callbacks.cpp b/lib/ocpp/v201/charge_point_callbacks.cpp index c6f7fa7ed..15c278654 100644 --- a/lib/ocpp/v201/charge_point_callbacks.cpp +++ b/lib/ocpp/v201/charge_point_callbacks.cpp @@ -79,8 +79,6 @@ bool Callbacks::all_callbacks_valid(std::shared_ptr device_model) c if (valid) { if (device_model->get_optional_value(ControllerComponentVariables::ReservationCtrlrAvailable) - .value_or(false) and - device_model->get_optional_value(ControllerComponentVariables::ReservationCtrlrEnabled) .value_or(false)) { if (!this->reserve_now_callback.has_value() or this->reserve_now_callback == nullptr) { EVLOG_error << "Reservation is set to 'Available' and 'Enabled' in device model, but "