Skip to content

Commit 55e349a

Browse files
committed
Implement CanProtocol for NicanBus
1 parent 51301fe commit 55e349a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

can/interfaces/nican.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616
import ctypes
1717
import logging
1818
import sys
19+
from typing import Optional, Tuple, Type
1920

20-
from can import BusABC, Message
2121
import can.typechecking
22-
from ..exceptions import (
22+
from can import (
23+
BusABC,
24+
Message,
25+
CanProtocol,
2326
CanError,
2427
CanInterfaceNotImplementedError,
2528
CanOperationError,
2629
CanInitializationError,
2730
)
28-
from typing import Optional, Tuple, Type
29-
3031

3132
logger = logging.getLogger(__name__)
3233

@@ -274,6 +275,7 @@ def __init__(
274275
can_filters=can_filters,
275276
bitrate=bitrate,
276277
log_errors=log_errors,
278+
protocol=CanProtocol.CAN_20,
277279
**kwargs,
278280
)
279281

0 commit comments

Comments
 (0)