Skip to content

Remove lock up condition in endPacket #160

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fredmcc
Copy link

@fredmcc fredmcc commented Jul 15, 2025

I see there are a few mentions of this condition and some pull requests to fix.

If the is a problem with the CAN transceiver (or there isn't one) this library basically locks up the whole ESP32.

I have changed the TX buffer check to a single check. If the buffer is full the function should return with a negative response and let the user program figure out what to do. There is no guarantee the buffer will become available so it shouldn't wait forever.

I also removed the check to wait for TX completion. I don't see the need to wait for the TX to complete before returning. This only leads to a lock up.

I think it would be good to implement this or something similar. Will save a lot of debug frustration in using what is otherwise a great library.

…buffer is full or transmission does not complete
@fredmcc
Copy link
Author

fredmcc commented Jul 15, 2025

This will rersolve issue #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant