Extented slcan.py to use "L" command optional to "O" command. by wolfraven · Pull Request #1496 · hardbyte/python-can
Added additional parameter "listen_only" to open interface/channel with "L" command (in opposite to "O" command).
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice change, but I'd suggest using BusState to be more consitent. See this example on how to parse it:
| if state is BusState.ACTIVE or state is BusState.PASSIVE: | |
| self.state = state | |
| else: | |
| raise ValueError("BusState must be Active or Passive") |
Added additional parameter "listen_only" to open interface/channel with "L" command (in opposite to "O" command).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters