We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba2a457 commit 0c7a18eCopy full SHA for 0c7a18e
1 file changed
can/interfaces/slcan.py
@@ -107,6 +107,12 @@ def __init__(
107
)
108
109
def set_bitrate(self, bitrate):
110
+ """
111
+ :raise ValueError: if both *bitrate* is not among the possible values
112
+
113
+ :param int bitrate:
114
+ Bitrate in bit/s
115
116
self.close()
117
if bitrate in self._BITRATES:
118
self.write(self._BITRATES[bitrate])
@@ -117,6 +123,10 @@ def set_bitrate(self, bitrate):
123
self.open()
124
119
125
def set_bitrate_reg(self, btr):
126
127
+ :param str btr:
128
+ BTR register value to set custom can speed
129
120
130
121
131
self.write("s" + btr)
122
132
0 commit comments