From 7c950146f6886057cd5a022e3c0c1c9df73f4eb3 Mon Sep 17 00:00:00 2001 From: pietfried Date: Fri, 6 Oct 2023 08:53:39 +0200 Subject: [PATCH] custom readonly values were not reported. now fixed Signed-off-by: pietfried --- lib/ocpp/v16/charge_point_configuration.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/ocpp/v16/charge_point_configuration.cpp b/lib/ocpp/v16/charge_point_configuration.cpp index 7c5817c4d..aabffa169 100644 --- a/lib/ocpp/v16/charge_point_configuration.cpp +++ b/lib/ocpp/v16/charge_point_configuration.cpp @@ -2020,9 +2020,6 @@ std::optional ChargePointConfiguration::getCustomKeyValue(CiString<50> try { KeyValue kv; kv.readonly = this->custom_schema["properties"][key]["readOnly"]; - if (kv.readonly) { - return std::nullopt; - } kv.key = key; if (this->config["Custom"][key].is_string()) { kv.value = std::string(this->config["Custom"][key]);