Skip to content
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

Fix bug where buffers are not initialised. #42

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

TT-ZX
Copy link

@TT-ZX TT-ZX commented Aug 21, 2024

Because the buffers are not initialized as null pointers isInitialized() returns true and initializeBuffers() exits early. This means that the buffers are never allocated on the heap.

@TT-ZX
Copy link
Author

TT-ZX commented Aug 21, 2024

The STM32F0xx uses one IRQ from both sending and receiving CAN packets. The HAL drivers use the same handler for both sending and receiving as well so it's enough to #define CAN1_RX0_IRQHandler.

@TT-ZX TT-ZX mentioned this pull request Aug 21, 2024
@pazi88
Copy link
Owner

pazi88 commented Aug 21, 2024

Thanks for this. I know this library has had bug somewhere causing reliability issues and just lately it has been pointing towards issue in the buffers. So it's probably this.

@pazi88 pazi88 merged commit 52ed65a into pazi88:main Aug 21, 2024
8 checks passed
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.

2 participants