Extented slcan.py to use "L" command optional to "O" command. by wolfraven · Pull Request #1496 · hardbyte/python-can

@wolfraven

Added additional parameter "listen_only" to open interface/channel with "L" command (in opposite to "O" command).

felixdivo

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")

@j-c-cook

Added additional parameter "listen_only" to open interface/channel with "L" command (in opposite to "O" command).

@zariiii9003