File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,15 @@ def __init__(
84
84
turn hardware handshake (RTS/CTS) on and off
85
85
:param listen_only:
86
86
If True, open interface/channel in listen mode with ``L`` command.
87
- Otherwise, the (default) ``O`` command is still used. See ``open`` methode .
87
+ Otherwise, the (default) ``O`` command is still used. See ``open`` method .
88
88
:param timeout:
89
89
Timeout for the serial or usb device in seconds (default 0.001)
90
90
91
91
:raise ValueError: if both ``bitrate`` and ``btr`` are set or the channel is invalid
92
92
:raise CanInterfaceNotImplementedError: if the serial module is missing
93
93
:raise CanInitializationError: if the underlying serial connection could not be established
94
94
"""
95
- self .listen_only = listen_only
95
+ self ._listen_only = listen_only
96
96
97
97
if serial is None :
98
98
raise CanInterfaceNotImplementedError ("The serial module is not installed" )
@@ -195,7 +195,7 @@ def flush(self) -> None:
195
195
self .serialPortOrig .reset_input_buffer ()
196
196
197
197
def open (self ) -> None :
198
- if self .listen_only :
198
+ if self ._listen_only :
199
199
self ._write ("L" )
200
200
else :
201
201
self ._write ("O" )
You can’t perform that action at this time.
0 commit comments