Skip to content

Conversation

@coderkalyan
Copy link
Contributor

Closes #183

@coderkalyan
Copy link
Contributor Author

As per MISRA, flexible array members should be replaced with maximum-size allocation and the following pointer arithmetic to avoid undefined behavior.

@coderkalyan coderkalyan force-pushed the misra branch 2 times, most recently from b8b7e1b to 9b517c2 Compare March 20, 2022 06:11

#define INITIAL_TOGGLE_STATE true

#define CANARD_MTU_MAX CANARD_MTU_CAN_FD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this actually should be in the header file (as I wrote earlier) because this is also useful for the API.

@pavel-kirienko pavel-kirienko enabled auto-merge (squash) March 28, 2022 08:01
@pavel-kirienko pavel-kirienko merged commit d128f4e into OpenCyphal:master Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants