From abf974815dc03c17a8ad7c6c749d53698cdd8dc1 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 20 Apr 2017 17:40:06 +0200 Subject: Separate socket configuration and opening Change-Id: I94cad718b516f24c5d1833e09df89f03e529f48a Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/can/can-bus.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'CAN-binder/low-can-binding/can/can-bus.cpp') diff --git a/CAN-binder/low-can-binding/can/can-bus.cpp b/CAN-binder/low-can-binding/can/can-bus.cpp index 4775b4fe..5d8221c0 100644 --- a/CAN-binder/low-can-binding/can/can-bus.cpp +++ b/CAN-binder/low-can-binding/can/can-bus.cpp @@ -239,6 +239,7 @@ int can_bus_t::init_can_dev() can_bus_t::can_devices_[device] = std::make_shared(device, i); if (can_bus_t::can_devices_[device]->open(true) >= 0) { + can_bus_t::can_devices_[device]->configure(); DEBUG(binder_interface, "Start reading thread"); NOTICE(binder_interface, "%s device opened and reading", device.c_str()); can_bus_t::can_devices_[device]->start_reading(*this); -- cgit 1.2.3-korg