summaryrefslogtreecommitdiffstats
path: root/CAN-binder
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-04-26 18:23:10 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-04-27 01:03:34 +0200
commit94022218f9212c7c59284a8bff4b9c47f5f9b351 (patch)
treeda550ff79a9a8d5ee48b2af332518d13fcc45374 /CAN-binder
parent15de266fce952f11f0e4daf9d4a293d0351c9a13 (diff)
Fix: Reading doesn't update receiving object values
Wrong signature using const argument with the obj receiving the read Change-Id: I0c5b8a3c974f0bd140823f8ce88aa2cbd451e543 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder')
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.cpp2
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp
index c550f6e..3385f0c 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.cpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.cpp
@@ -138,7 +138,7 @@ namespace utils
return socket_;
}
- socketcan_t& operator>>(socketcan_t& s, const can_message_t& cm)
+ socketcan_t& operator>>(socketcan_t& s, can_message_t& cm)
{
struct {
struct bcm_msg_head msg_head;
diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp
index 673303b..cc7326e 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.hpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.hpp
@@ -78,5 +78,5 @@ namespace utils
socketcan_t& operator<<(socketcan_t& s, const struct basic_bcm_msg<can_frame>& obj);
socketcan_t& operator<<(socketcan_t& s, const struct canfd_bcm_msg& obj);
- socketcan_t& operator>>(socketcan_t& s, const can_message_t& cm);
+ socketcan_t& operator>>(socketcan_t& s, can_message_t& cm);
}