Fix: wrong argument passed to start_reading().
authorRomain Forlot <romain.forlot@iot.bzh>
Tue, 28 Feb 2017 15:21:19 +0000 (16:21 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Tue, 28 Feb 2017 20:45:49 +0000 (21:45 +0100)
Not needed to specify std::ref...

Change-Id: I0e5ae02554f8a0f07ec1d40670b9b089453804e0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/can-bus.cpp

index f4a6d55..8511bb1 100644 (file)
@@ -172,7 +172,7 @@ int can_bus_t::init_can_dev()
                        {
                                i++;
                                DEBUG(binder_interface, "Start reading thread");
-                               can_bus_device_handler.start_reading(std::ref(*this));
+                               can_bus_device_handler.start_reading(*this);
                        }
                        else
                                ERROR(binder_interface, "Can't open device %s", device.c_str());