aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
authorArthur Guyader <arthur.guyader@iot.bzh>2019-12-21 10:10:03 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:26:21 +0100
commit94e5f493282c2a399d8ad2471604f50975560fc0 (patch)
treed9393bdf2abf49a1fad40cda87e926243c1370bd /low-can-binding
parent252d47fb4c0d3a69d3fffdf08213e771d61fcad1 (diff)
openxc-utils : No send string but send array_object for signals
Change-Id: Iee28c1216ad5a3a4cdc76bd3edef4f7b5ccf0866 Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh> Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding')
-rw-r--r--low-can-binding/utils/openxc-utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/utils/openxc-utils.cpp b/low-can-binding/utils/openxc-utils.cpp
index 8d331003..68c8a657 100644
--- a/low-can-binding/utils/openxc-utils.cpp
+++ b/low-can-binding/utils/openxc-utils.cpp
@@ -421,7 +421,7 @@ void jsonify_DynamicField(const openxc_DynamicField& field, json_object* value)
else if(field.has_bytes_value)
json_object_object_add(value, "value", json_object_new_string(converter_t::to_hex(field.bytes_value, field.length_array).c_str()));
else if(field.has_json_value)
- json_object_object_add(value, "signals", json_object_new_string(json_object_get_string(field.json_value)));
+ json_object_object_add(value, "signals", json_object_get(field.json_value));
}
///