Skip to content

Commit

Permalink
Remove check if reservation ctrlr is enabled because that can be chan…
Browse files Browse the repository at this point in the history
…ged runtime (readwrite).

Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
  • Loading branch information
maaikez committed Dec 10, 2024
1 parent 3add258 commit d79bf58
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ocpp/v201/charge_point_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ bool Callbacks::all_callbacks_valid(std::shared_ptr<DeviceModel> device_model) c

if (valid) {
if (device_model->get_optional_value<bool>(ControllerComponentVariables::ReservationCtrlrAvailable)
.value_or(false) and
device_model->get_optional_value<bool>(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 "
Expand Down

0 comments on commit d79bf58

Please sign in to comment.