diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-23 14:09:30 +0000 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-23 14:09:30 +0000 |
commit | d59970dce571c1753174124326406ec1ff8e2ce8 (patch) | |
tree | 9d58203f97dc15353502f49a401fca383b00dd35 /src/can_reader.cpp | |
parent | b0975e4bfa534153657a7ee8acaee0f950056e97 (diff) |
Make binder_interface global variable rather than
pass it over and over through class and functions
Change-Id: Ie32d44126a41125c6c45d18663b668328df44e2d
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can_reader.cpp')
-rw-r--r-- | src/can_reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/can_reader.cpp b/src/can_reader.cpp index 24bc6004..b836570a 100644 --- a/src/can_reader.cpp +++ b/src/can_reader.cpp @@ -20,11 +20,11 @@ void can_reader(can_bus_dev_t &can_bus_dev, can_bus_t& can_bus) { - can_message_t can_message(can_bus.interface_); + can_message_t can_message; while(can_bus_dev.is_running()) { - can_message.convert_from_canfd_frame(can_bus_dev.read(can_bus.interface_)); + can_message.convert_from_canfd_frame(can_bus_dev.read()); can_bus.push_new_can_message(can_message); } }
\ No newline at end of file |