Skip to content

Conversation

@kkoop-swi
Copy link

Set CanardCANFrame::iface_id to zero, as it is currently not set in STM32 driver, but compared in canardHandleRxFrame().

Found this issue when implementing the receive loop as in the example "battery_node.c", which declares the rx_frame on the stack without zeroing it. Depending on the stack content, the code works (if iface_id happens to be the same on each call), or frames are lost/dropped sometimes.

Set CanardCANFrame::iface_id to zero, as it is currently not set in
STM32 driver, but compared in canardHandleRxFrame().
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