-
Notifications
You must be signed in to change notification settings - Fork 181
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
Not checking for ESP_FAIL in AsyncCanDriver::transmit #350
Comments
No idea without digging (again) into the ESP IDF C source code of the TWAI driver... |
@leonardodanelutti The way I read the code (I might be wrong) is that Can you confirm if you are doing that? |
@ivmarkov I actually didn't get that error, I was looking at the async implementation for the CanDriver and it seemed strange that the ESP_FAIL error wasn't also checked. Yes, I think you are right, as it is also written in the documentation, ESP_FAIL is returned only if the TX queue is disabled and another message is transmitting at that moment. When that error occurs, I don't think the function should return, right? |
Yes I'll patch the driver shortly. |
For non-blocking implementations of the
embedded-hal
theESP_FAIL
error is treated asWouldBlock
, shouldn't the same be done for the async function implementation?The text was updated successfully, but these errors were encountered: