-
Notifications
You must be signed in to change notification settings - Fork 604
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
Add autostart option to BusABC.send_periodic() to fix issue #1848 #1853
Add autostart option to BusABC.send_periodic() to fix issue #1848 #1853
Conversation
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.
Seems reasonable
… ReadFD) (hardbyte#1850) * When there is an invalid frame on CAN bus (in our case CAN FD), PCAN first reports result PCAN_ERROR_ILLDATA and then it send the error frame. If the PCAN_ERROR_ILLDATA is not ignored, python-can throws an exception. This fix add the ignore on the PCAN_ERROR_ILLDATA. * Fix for ruff error `can/interfaces/pcan/pcan.py:5:1: I001 [*] Import block is un-sorted or un-formatted` Added comment explaining why to ignore the PCAN_ERROR_ILLDATA.
It seems like the test "testProducerConsumer" fails randomly on random pypy versions (3.9, 3.10) on random platforms (windows here so far, but other requests show the same behavior on ubuntu and macos). |
The autostart parameter is ignored by socketcan and ixxat, right? This should either be fixed or documented. |
No that's not right the autostart parameter is not ignored by neither socketcan nor ixxat. The changes are all done on the internal implementations as well. Also everything changed is documented in the docstrings (that existed before). |
Your change only affects the thread-based fallback. However, the socketcan broadcast manager starts immediately. |
Hopefully I have fixed the missing parts now. Thanks for your hint @zariiii9003 . |
…oadcastmanager.CyclicTask.start
…on of CyclicSendTask to not call _tx_setup() method instead of adding a parameter to it.
Fix wrong docstring reference.
Thank you 👍 |
I have fixed my own issue #1848