Skip to content

Conversation

@zariiii9003
Copy link
Collaborator

Implementation based on #625

BitTiming class takes precedence over the bitrate argument.
I did not remove the other bit timing arguments from init() and i did not add any deprecation warnings.

i tested this on a VN1610

… vector-bit-timing

# Conflicts:
#	can/interfaces/vector/canlib.py
#	can/interfaces/vector/vxlapi.py
@codecov
Copy link

codecov bot commented Jul 23, 2019

Codecov Report

Merging #650 into develop will increase coverage by 0.36%.
The diff coverage is 96.29%.

@@             Coverage Diff             @@
##           develop     #650      +/-   ##
===========================================
+ Coverage    68.57%   68.93%   +0.36%     
===========================================
  Files           69       69              
  Lines         6227     6261      +34     
===========================================
+ Hits          4270     4316      +46     
+ Misses        1957     1945      -12

self.canFdConf = xlclass.XLcanFdConf()
if bitrate:
self.canFdConf.arbitrationBitRate = ctypes.c_uint(bitrate)
if timing:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we refactor this out of the init and get back the canFdConf object? That should make the code more readible and make testing the corner cases a bit easier.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hardbyte can you take another look? I implemented the changes you requested.

@zariiii9003
Copy link
Collaborator Author

@hardbyte Thank you for your review! I will take care of it once the discussion in #625 is resolved.

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.

3 participants