aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-28 13:37:35 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit4770f7f32cf18c56842a1b77faae1f39d8482822 (patch)
treeb5d19edb928cf8143c10274a68910228705b98f8 /low-can-binding
parent80c39d6a1aeca232a0a0b5c597fecb3ad08f4702 (diff)
low-can: Fix init failing when using without J1939
Return variable was initialized to 1 instead of 0 and without using J1939 this variable isn't reaffected and so the final test fails. Bug-AGL: SPEC-2386 Change-Id: I53b7cd757b3b344d66ab18ba9795284105cbcfcc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding')
-rw-r--r--low-can-binding/binding/low-can-cb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/binding/low-can-cb.cpp b/low-can-binding/binding/low-can-cb.cpp
index 20ed39d4..aaf39d97 100644
--- a/low-can-binding/binding/low-can-cb.cpp
+++ b/low-can-binding/binding/low-can-cb.cpp
@@ -859,7 +859,7 @@ void list(afb_req_t request)
/// @return Exit code, zero if success.
int init_binding(afb_api_t api)
{
- int ret = 1;
+ int ret = 0;
application_t& application = application_t::instance();
can_bus_t& can_bus_manager = application.get_can_bus_manager();