diff options
author | Arthur Guyader <arthur.guyader@iot.bzh> | 2019-12-13 14:44:42 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2020-01-09 16:25:36 +0100 |
commit | 74acfee2361a04f5ea389b31c4defecc30d8fc6b (patch) | |
tree | 1b4a8939aae56227043d929d0fffababb71fac01 /low-can-binding/can | |
parent | 23e350e7c5f193edd5944239f5a2e12af401c228 (diff) |
can_bus: Add unit in the json that low-can emits
This commit allow if the unit is defined to display it
in the json emmits by low-can.
Change-Id: Ia09d4d9614eba6de93292ffab351fa1f4e612b73
Signed-off-by: Arthur Guyader <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can')
-rw-r--r-- | low-can-binding/can/can-bus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/can/can-bus.cpp b/low-can-binding/can/can-bus.cpp index 0510998b..f6b5add7 100644 --- a/low-can-binding/can/can-bus.cpp +++ b/low-can-binding/can/can-bus.cpp @@ -213,7 +213,7 @@ void can_bus_t::can_event_push() if(s.find(v_message.first) != s.end() && afb_event_is_valid(s[v_message.first]->get_event())) { jo = json_object_new_object(); - jsonify_vehicle(v_message.second, jo); + jsonify_vehicle(v_message.second, s[v_message.first]->get_signal(), jo); if(afb_event_push(s[v_message.first]->get_event(), jo) == 0) { if(v_message.second.has_diagnostic_response) |