Skip to content

Fully initialize usb2can Bus interface object. #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 13, 2019

Conversation

acolomb
Copy link
Contributor

@acolomb acolomb commented Feb 11, 2019

Add the missing parent class initialization to fix #465.

Tested under a 32-bit Python3 environment in Windows 7.

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.
The usb2can interface currently only supports 32-bit Python on
Windows, because there is no 64-bit CANAL library available yet.
Mention this in the documentation section.
@codecov
Copy link

codecov bot commented Feb 11, 2019

Codecov Report

Merging #501 into develop will decrease coverage by 0.06%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #501      +/-   ##
===========================================
- Coverage    63.87%   63.81%   -0.07%     
===========================================
  Files           63       63              
  Lines         5625     5626       +1     
===========================================
- Hits          3593     3590       -3     
- Misses        2032     2036       +4

1 similar comment
@codecov
Copy link

codecov bot commented Feb 11, 2019

Codecov Report

Merging #501 into develop will decrease coverage by 0.06%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #501      +/-   ##
===========================================
- Coverage    63.87%   63.81%   -0.07%     
===========================================
  Files           63       63              
  Lines         5625     5626       +1     
===========================================
- Hits          3593     3590       -3     
- Misses        2032     2036       +4

@hardbyte hardbyte merged commit de94772 into hardbyte:develop Feb 13, 2019
@acolomb acolomb deleted the usb2can-constructor-fix branch February 13, 2019 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

USB2CAN interface: Incomplete initialization
3 participants