aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-cb.cpp
diff options
context:
space:
mode:
authorYuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>2017-09-01 19:43:58 +0900
committerRomain Forlot <romain.forlot@iot.bzh>2017-09-01 13:10:27 +0000
commite1d2eb87248861b63f1c0a90398b6e71338571e3 (patch)
tree7d1c14ed40d4491bf76a8299e27c4e9d2042aed5 /low-can-binding/binding/low-can-cb.cpp
parent94bcc509f0541224303b959cb1d02e6a55478e3b (diff)
Fix can write API result
write_raw_frame() and write_signal() return results. Change-Id: I3f6d03eaf02bde9ad02fd8de912c5816d249570f Signed-off-by: Yuichi Kusakabe <yuichi.kusakabe@jp.fujitsu.com>
Diffstat (limited to 'low-can-binding/binding/low-can-cb.cpp')
-rw-r--r--low-can-binding/binding/low-can-cb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/low-can-binding/binding/low-can-cb.cpp b/low-can-binding/binding/low-can-cb.cpp
index eb91c214..0bb55038 100644
--- a/low-can-binding/binding/low-can-cb.cpp
+++ b/low-can-binding/binding/low-can-cb.cpp
@@ -484,7 +484,7 @@ void write(struct afb_req request)
(json_object_object_get_ex(json_value, "can_dlc", &json_can_dlc) && (json_object_is_type(json_can_dlc, json_type_double) || json_object_is_type(json_can_dlc, json_type_int))) &&
(json_object_object_get_ex(json_value, "can_data", &json_can_data) && json_object_is_type(json_can_data, json_type_array) ))
{
- write_raw_frame(json_object_get_string(json_name),
+ rc = write_raw_frame(json_object_get_string(json_name),
json_object_get_int(json_can_id),
(uint8_t)json_object_get_int(json_can_dlc),
json_can_data);
@@ -500,7 +500,7 @@ void write(struct afb_req request)
(json_object_object_get_ex(args, "signal_name", &json_name) && json_object_is_type(json_name, json_type_string)) &&
(json_object_object_get_ex(args, "signal_value", &json_value) && (json_object_is_type(json_value, json_type_double) || json_object_is_type(json_value, json_type_int))))
{
- write_signal(json_object_get_string(json_name),
+ rc = write_signal(json_object_get_string(json_name),
(uint64_t)json_object_get_double(json_value));
}
else