Skip to content

Commit fca9827

Browse files
christiansandbergfelixdivo
authored andcommitted
Fix bitrate setting in slcan
1 parent 31c23bb commit fca9827

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

can/interfaces/slcan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def __init__(
9797
if bitrate is not None and btr is not None:
9898
raise ValueError("Bitrate and btr mutually exclusive.")
9999
if bitrate is not None:
100-
self.set_bitrate(self, bitrate)
100+
self.set_bitrate(bitrate)
101101
if btr is not None:
102-
self.set_bitrate_reg(self, btr)
102+
self.set_bitrate_reg(btr)
103103
self.open()
104104

105105
super().__init__(

0 commit comments

Comments
 (0)