aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-11-28 13:37:35 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-12-03 19:46:26 +0100
commit98c0076e7811f750f2bed036c481175c18839947 (patch)
treef441e8189d4473f20112ae56bf2dacf6a85c621e
parentd97ecdb1641cd25348fc8f72b454261c058c8fb0 (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. Change-Id: I53b7cd757b3b344d66ab18ba9795284105cbcfcc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-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 79108a7b..89d1fdc4 100644
--- a/low-can-binding/binding/low-can-cb.cpp
+++ b/low-can-binding/binding/low-can-cb.cpp
@@ -858,7 +858,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();