Separate socket configuration and opening
[apps/low-level-can-service.git] / CAN-binder / low-can-binding / can / can-bus.cpp
index 4775b4f..5d8221c 100644 (file)
@@ -239,6 +239,7 @@ int can_bus_t::init_can_dev()
                                can_bus_t::can_devices_[device] = std::make_shared<can_bus_dev_t>(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);