diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-21 16:30:30 +0000 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-22 12:15:11 +0100 |
commit | c535c3bb2d73327772c1bb72c9fcca3f8a7f8204 (patch) | |
tree | 9ff986d92ece98a86e042b76aca1a0b4a4a3ebc2 /src/can_reader.cpp | |
parent | 37e6cbdcca6a1862c2a7bcb81d24e43c4b510d4e (diff) |
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 <romain.forlot@iot.bzh>
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 6fc1e740..4be15469 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 |