From f8eddb07e3a87d5e7f61623be11fd4876bf9b484 Mon Sep 17 00:00:00 2001 From: Matthias Suess Date: Mon, 16 Dec 2024 11:49:15 +0100 Subject: [PATCH] Converte boolean to true/false string equvivalent Signed-off-by: Matthias Suess --- lib/ocpp/v16/charge_point_configuration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ocpp/v16/charge_point_configuration.cpp b/lib/ocpp/v16/charge_point_configuration.cpp index c235f444c..0be3a66ff 100644 --- a/lib/ocpp/v16/charge_point_configuration.cpp +++ b/lib/ocpp/v16/charge_point_configuration.cpp @@ -2502,7 +2502,7 @@ KeyValue ChargePointConfiguration::getCustomDisplayCostAndPriceEnabledKeyValue() const bool enabled = getCustomDisplayCostAndPriceEnabled(); KeyValue kv; kv.key = "CustomDisplayCostAndPrice"; - kv.value = std::to_string(enabled); + kv.value = ocpp::conversions::bool_to_string(enabled); kv.readonly = true; return kv; }