From c535c3bb2d73327772c1bb72c9fcca3f8a7f8204 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 21 Feb 2017 16:30:30 +0000 Subject: All queue under can_bus_t class and reading thread function with an additionnal can_bus_t object argument Change-Id: I6b0b9b66e83be59359bcd148e8b9f3350a085b64 Signed-off-by: Romain Forlot --- src/can_reader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/can_reader.cpp') 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 -- cgit 1.2.3-korg