diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-11 19:58:04 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-13 23:31:56 +0000 |
commit | 97bf55de6cd4fb832f98a670a5ac37ffb0a78b8a (patch) | |
tree | 5c81d1eb84843367504b4438eb51dd118fbc1b33 /can_reader.cpp | |
parent | cba316f0aa72b3de846814495671df6ecb226028 (diff) |
Fix wrong arguments type
Reader is almost finish i think now
Change-Id: Ib4c7c88b430ada2661e6ce2a67dde76d03dba2f1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
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 |