diff options
Diffstat (limited to 'src/can_reader.cpp')
-rw-r--r-- | src/can_reader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/can_reader.cpp b/src/can_reader.cpp index 6fc1e74..4be1546 100644 --- a/src/can_reader.cpp +++ b/src/can_reader.cpp @@ -18,13 +18,13 @@ #include "can_reader.hpp" -void can_reader(can_bus_dev_t &can_bus) +void can_reader(can_bus_dev_t &can_bus_dev, can_bus_t& can_bus) { can_message_t can_message(interface); - while(can_bus.is_running()) + while(can_bus_dev.is_running()) { - can_message.convert_from_canfd_frame(can_bus.read(interface)); + can_message.convert_from_canfd_frame(can_bus_dev.read(interface)); can_bus.push_new_can_message(can_message); } }
\ No newline at end of file |