aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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_));