From c89528d692b964be79b15dc35108740a5c893c86 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 9 Mar 2017 02:26:05 +0100 Subject: Fix: wrong socket variable called. Change-Id: Ib09b084e7202d184abf73cf92fea4afbcf4acf47 Signed-off-by: Romain Forlot --- src/can/can-bus-dev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/can/can-bus-dev.cpp b/src/can/can-bus-dev.cpp index a6429edd..389154b8 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_)); -- cgit 1.2.3-korg