summaryrefslogtreecommitdiffstats
path: root/src/can-bus.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-01 17:42:52 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-01 17:42:52 +0100
commit937fe8e40aba5eb37c69fd5ff6bf4d800541a009 (patch)
treecd7b1d7919aacba6861ab63e98ed924531b00002 /src/can-bus.hpp
parent4f06114c79f804ed404d40ffad771cbacab0fe8b (diff)
New way to return canfd_frame with now number of read bytes.
This way, we can detect correctly the max data length and set the data correctly. Change-Id: I346df154df76dbd4a463d1fabfd9edd56faca506 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-bus.hpp')
-rw-r--r--src/can-bus.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/can-bus.hpp b/src/can-bus.hpp
index 991bf62c..b80b68d9 100644
--- a/src/can-bus.hpp
+++ b/src/can-bus.hpp
@@ -270,7 +270,7 @@ class can_bus_dev_t {
* @param const struct afb_binding_interface* interface pointer. Used to be able to log
* using application framework logger.
*/
- canfd_frame read();
+ std::pair<struct canfd_frame&, size_t> read();
/**
* @brief Send a can message from a can_message_t object.