-
Notifications
You must be signed in to change notification settings - Fork 633
Add Parameter for Enabling PCAN Auto Bus-Off Reset #1345
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
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1345 +/- ##
===========================================
- Coverage 66.18% 66.06% -0.13%
===========================================
Files 86 86
Lines 9005 8964 -41
===========================================
- Hits 5960 5922 -38
+ Misses 3045 3042 -3 |
Hmm looks like some tests are failing for the UdpMulticastBus and to be very honest I have no clue how that bus works and how I could have broken anything there... Can someone with a bit more experience have a brief look and help a newbie out? :) (I noticed that @felixdivo has done a lot of work on the virtual UDP bus, do you have any idea what's going wrong here?) |
Hm. No, I don't really have a clue. It wasn't an issue back when I developed and merged it. Perhaps, the CI platform changed. This has happened before with regards to changing IP(v6) support. I'm not available to investigate this any further, at the moment at least. Sorry. |
Okay no worries, I'll see if I can make some sense out of it! |
Hey @1atabey1, @felixdivo I did some investigation, the failing tests all do the following:
All tests fail because the arbitration ID of the message received during step 5 is still equal to Unfortunately, I am unable to reproduce this bug locally. I will try to create a new pull request to debug this further. |
@@ -259,6 +264,14 @@ def __init__( | |||
"Ignoring error. PCAN_ALLOW_ERROR_FRAMES is still unsupported by OSX Library PCANUSB v0.10" | |||
) | |||
|
|||
if kwargs.get("auto_reset", False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the parameter to the __init__()
method instead of using kwargs.get
?
I do not know why some of the other parameters are not __init__
-arguments but i thinks that's bad for readability.
2ba1a10
to
e508790
Compare
sorry, was too busy last month unfortunately.. Thank you two for finishing this up @zariiii9003 @lumagi ! |
Allows enabling of automatic hardware reinitialisation in case of a bus off event by adding the parameter
auto_reset
(defaults toFalse
in order to not change current default behaviour)