-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
[esp32_can] Configurable enqueue timeout #8453
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
Hey there @danielschramm, @mvturnho, mind taking a look at this pull request as it has been labeled with an integration ( |
Hey there @Sympatron, mind taking a look at this pull request as it has been labeled with an integration ( |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8453 +/- ##
==========================================
+ Coverage 53.70% 54.92% +1.21%
==========================================
Files 50 50
Lines 9408 9910 +502
Branches 1654 1353 -301
==========================================
+ Hits 5053 5443 +390
- Misses 4056 4124 +68
- Partials 299 343 +44 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Good idea. I vote for merging.
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.
LGTM
ea399f5
to
6c8dec8
Compare
As discussed, I added a config option for the enqueue timeout. Naming-wise, I went with |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Hey there @Sympatron, mind taking a look at this pull request as it has been labeled with an integration ( |
Ok, just need a docs update now. |
already on it 😄 |
(done, btw) |
What does this implement/fix?
This reduces the CAN TX queueing timeout from 1000ms to 10ms to avoid blocking very long when trying to send messages to an unresponsive device / disconnected bus (causing a "Component xxx took a long time for an operation (1000ms)" message and possibly triggering the loop watchdog).
This also adds a warning message when a CAN message couldn't be queued.
Types of changes
Related issue or feature (if applicable):
Pull request in esphome-docs with documentation (if applicable):
Test Environment
Example entry for
config.yaml
:Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: