diff options
Diffstat (limited to 'src/can')
-rw-r--r-- | src/can/can-bus-dev.cpp | 2 |
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_)); |