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 51301fe commit 55e349aCopy full SHA for 55e349a
can/interfaces/nican.py
@@ -16,17 +16,18 @@
16
import ctypes
17
import logging
18
import sys
19
+from typing import Optional, Tuple, Type
20
-from can import BusABC, Message
21
import can.typechecking
22
-from ..exceptions import (
+from can import (
23
+ BusABC,
24
+ Message,
25
+ CanProtocol,
26
CanError,
27
CanInterfaceNotImplementedError,
28
CanOperationError,
29
CanInitializationError,
30
)
-from typing import Optional, Tuple, Type
-
31
32
logger = logging.getLogger(__name__)
33
@@ -274,6 +275,7 @@ def __init__(
274
275
can_filters=can_filters,
276
bitrate=bitrate,
277
log_errors=log_errors,
278
+ protocol=CanProtocol.CAN_20,
279
**kwargs,
280
281
0 commit comments