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 55e349a commit 76465e4Copy full SHA for 76465e4
can/interfaces/iscan.py
@@ -3,12 +3,14 @@
3
"""
4
5
import ctypes
6
-import time
7
import logging
+import time
8
from typing import Optional, Tuple, Union
9
10
-from can import BusABC, Message
11
from can import (
+ BusABC,
12
+ Message,
13
+ CanProtocol,
14
CanError,
15
CanInterfaceNotImplementedError,
16
CanInitializationError,
@@ -106,7 +108,11 @@ def __init__(
106
108
iscan.isCAN_DeviceInitEx(self.channel, self.BAUDRATES[bitrate])
107
109
110
super().__init__(
- channel=channel, bitrate=bitrate, poll_interval=poll_interval, **kwargs
111
+ channel=channel,
112
+ bitrate=bitrate,
113
+ poll_interval=poll_interval,
114
+ protocol=CanProtocol.CAN_20,
115
+ **kwargs,
116
)
117
118
def _recv_internal(
0 commit comments