summaryrefslogtreecommitdiffstats
path: root/src/can
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-09 02:26:05 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:10:40 +0100
commitc89528d692b964be79b15dc35108740a5c893c86 (patch)
treea3bdb254d7bebd09ad04345eafe042573ff0b5d6 /src/can
parentf1afeaf50836bf66153cb6cccbfbfdc1e2a5493b (diff)
Fix: wrong socket variable called.
Change-Id: Ib09b084e7202d184abf73cf92fea4afbcf4acf47 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can')
-rw-r--r--src/can/can-bus-dev.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/can/can-bus-dev.cpp b/src/can/can-bus-dev.cpp
index a6429ed..389154b 100644
--- a/src/can/can-bus-dev.cpp
+++ b/src/can/can-bus-dev.cpp
@@ -175,7 +175,7 @@ int can_bus_dev_t::send_can_message(can_message_t& can_msg)
f = can_msg.convert_to_canfd_frame();
- if(can_socket_)
+ if(can_socket_.socket())
{
nbytes = ::sendto(can_socket_.socket(), &f, sizeof(struct canfd_frame), 0,
(struct sockaddr*)&txAddress_, sizeof(txAddress_));