From e28ae5f481c3a0d78bb7d6c21416dc38be541a4d Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Mon, 16 Dec 2019 16:54:07 +0100 Subject: openxc-utils : Add json value for DynamicField Change-Id: I93d31768804d4e30994897487e9fd312a56c547b Signed-off-by: Arthur Guyader Signed-off-by: Romain Forlot --- low-can-binding/utils/openxc-utils.cpp | 40 ++++++++++++++++++++++++---------- low-can-binding/utils/openxc-utils.hpp | 1 + 2 files changed, 30 insertions(+), 11 deletions(-) (limited to 'low-can-binding') diff --git a/low-can-binding/utils/openxc-utils.cpp b/low-can-binding/utils/openxc-utils.cpp index 5ca70b88..8d331003 100644 --- a/low-can-binding/utils/openxc-utils.cpp +++ b/low-can-binding/utils/openxc-utils.cpp @@ -235,7 +235,6 @@ const openxc_DynamicField build_DynamicField(std::vector &array) d.length_array = (uint32_t) size; } - for(int i=0;i &array); +const openxc_DynamicField build_DynamicField_json(json_object *value); int get_bool_from_DynamicField(const openxc_VehicleMessage& v_msg, bool& ret); double get_numerical_from_DynamicField(const openxc_VehicleMessage& v_msg); -- cgit