Skip to content

Fully initialize usb2can Bus interface object.#501

Merged
hardbyte merged 3 commits intohardbyte:developfrom
acolomb:usb2can-constructor-fix
Feb 13, 2019
Merged

Fully initialize usb2can Bus interface object.#501
hardbyte merged 3 commits intohardbyte:developfrom
acolomb:usb2can-constructor-fix

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