Skip to content

Commit 8e75cc0

Browse files
author
luoja
committed
fix
1 parent e805479 commit 8e75cc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

can/interfaces/kvaser/canlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ def __init__(self, channel, can_filters=None, **kwargs):
504504
if exclusive:
505505
flags_ = flags & ~canstat.canOPEN_EXCLUSIVE
506506
flags_ |= canstat.canOPEN_OVERRIDE_EXCLUSIVE
507+
else:
508+
flags_ = flags
507509
self._write_handle = canOpenChannel(channel, flags_)
508510
canBusOn(self._read_handle)
509511

0 commit comments

Comments
 (0)