We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c896eb commit 0e589dcCopy full SHA for 0e589dc
can/interfaces/udp_multicast/bus.py
@@ -14,12 +14,12 @@
14
15
from .utils import check_msgpack_installed, pack_message, unpack_message
16
17
-ioctl_not_supported = False
+ioctl_supported = True
18
19
try:
20
from fcntl import ioctl
21
except ModuleNotFoundError: # Missing on Windows
22
- ioctl_not_supported = True
+ ioctl_supported = False
23
pass
24
25
@@ -397,7 +397,7 @@ def recv(
397
self.max_buffer
398
)
399
400
- if not ioctl_not_supported:
+ if ioctl_supported:
401
result_buffer = ioctl(
402
self._socket.fileno(),
403
SIOCGSTAMP,
0 commit comments