File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
src/network_systems/projects/can_transceiver/src Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include < errno.h>
4
4
#include < fcntl.h>
5
- #include < fcntl.h>
6
5
#include < linux/can.h>
7
6
#include < net/if.h>
8
7
#include < sys/ioctl.h>
@@ -110,15 +109,6 @@ CanTransceiver::~CanTransceiver()
110
109
111
110
void CanTransceiver::receive ()
112
111
{
113
- int flags = fcntl (sock_desc_, F_GETFL, 0 );
114
- if (flags == -1 ) {
115
- std::cerr << " failed to get flags for CAN socket fd" << std::endl;
116
- }
117
- // make read() non-blocking so mutex gets released
118
- flags |= O_NONBLOCK;
119
- if (fcntl (sock_desc_, F_SETFL, flags) == -1 ) {
120
- std::cerr << " failed to set flags for CAN socket fd" << std::endl;
121
- }
122
112
int flags = fcntl (sock_desc_, F_GETFL, 0 );
123
113
if (flags == -1 ) {
124
114
std::cerr << " failed to get flags for CAN socket fd" << std::endl;
You can’t perform that action at this time.
0 commit comments