Skip to content

Commit

Permalink
Fix conversion of bool for connector zero support.
Browse files Browse the repository at this point in the history
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
  • Loading branch information
maaikez committed Nov 4, 2024
1 parent dd6e6bb commit f454ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocpp/v16/charge_point_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,7 @@ std::optional<KeyValue> ChargePointConfiguration::getReserveConnectorZeroSupport
KeyValue kv;
kv.key = "ReserveConnectorZeroSupported";
kv.readonly = true;
kv.value.emplace(std::to_string(reserve_connector_zero_supported.value()));
kv.value.emplace(ocpp::conversions::bool_to_string(reserve_connector_zero_supported.value()));
reserve_connector_zero_supported_kv.emplace(kv);
}
return reserve_connector_zero_supported_kv;
Expand Down

0 comments on commit f454ce7

Please sign in to comment.