Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fully initialize usb2can Bus interface object.
The usb2can interface backend currently does not work because the
_filters member is not initialized in the constructor of
can.interfaces.usb2can.Usb2canBus.  Call the parent class constructor
to pull in the missing object attributes.
  • Loading branch information
acolomb committed Feb 11, 2019
commit 65bbc722835aa795921a7fe1793d829ec34c6ac3
2 changes: 2 additions & 0 deletions can/interfaces/usb2can/usb2canInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ def __init__(self, channel, *args, **kwargs):

self.handle = self.can.open(connector.encode('utf-8'), enable_flags)

super(Usb2canBus, self).__init__(channel=channel, *args, **kwargs)

def send(self, msg, timeout=None):
tx = message_convert_tx(msg)
if timeout:
Expand Down