diff options
Diffstat (limited to 'can_reader.cpp')
-rw-r--r-- | can_reader.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/can_reader.cpp b/can_reader.cpp index 35ea79e6..1e6429ec 100644 --- a/can_reader.cpp +++ b/can_reader.cpp @@ -21,6 +21,8 @@ #include <afb/afb-binding.h> +#include "can-utils.h" + void can_reader(afb_binding_interface *interface, int socket, std::queue <CanMessage_t>& can_message_q) { ssize_t nbytes; @@ -56,19 +58,9 @@ void can_reader(afb_binding_interface *interface, int socket, std::queue <CanMes return -2; } - /* - * TODO: thread handle - if (parse_can_frame(can_message, &canfd_frame, maxdlen)) - { - ERROR(interface, "read_can: Can't parse the can frame. ID: %i, DLC: %i, DATA: %s", - canfd_frame.can_id, canfd_frame.len, canfd_frame.data); - return -4; - } - */ - can_message.convert_canfd_frame_to_CanMessage(canfd_frame); can_message_q.push(can_message); } -} +}
\ No newline at end of file |