Skip to content

Commit 0e589dc

Browse files
committed
fix double inversion
1 parent 6c896eb commit 0e589dc

File tree

1 file changed

+3
-3
lines changed
  • can/interfaces/udp_multicast

1 file changed

+3
-3
lines changed

can/interfaces/udp_multicast/bus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
from .utils import check_msgpack_installed, pack_message, unpack_message
1616

17-
ioctl_not_supported = False
17+
ioctl_supported = True
1818

1919
try:
2020
from fcntl import ioctl
2121
except ModuleNotFoundError: # Missing on Windows
22-
ioctl_not_supported = True
22+
ioctl_supported = False
2323
pass
2424

2525

@@ -397,7 +397,7 @@ def recv(
397397
self.max_buffer
398398
)
399399

400-
if not ioctl_not_supported:
400+
if ioctl_supported:
401401
result_buffer = ioctl(
402402
self._socket.fileno(),
403403
SIOCGSTAMP,

0 commit comments

Comments
 (0)