Skip to content

Commit

Permalink
Converte boolean to true/false string equvivalent (#916)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Suess <[email protected]>
  • Loading branch information
Matthias-NIDEC authored Dec 17, 2024
1 parent c663837 commit 00137ba
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 @@ -2514,7 +2514,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;
}
Expand Down

0 comments on commit 00137ba

Please sign in to comment.