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

Integrate ANDI-10609 #36

Closed
wants to merge 9 commits into from
Closed

Integrate ANDI-10609 #36

wants to merge 9 commits into from

Conversation

aamereller
Copy link
Contributor

No description provided.

src/app.cpp Outdated Show resolved Hide resolved
src/app.cpp Outdated Show resolved Hide resolved
src/app.cpp Outdated Show resolved Hide resolved
src/app.cpp Outdated
if (header.data_type == TECMP_DATA_CANFD)
{
can.flags |= CANFD_FDF;
can.flags |= header.data_flags & TMP_BITRATE_SWITCH ? CANFD_BRS : 0;
can.flags |= header.data_flags & TMP_ERROR_NODE_ACTIVE ? CANFD_ESI : 0;
}
memcpy(can.data, data + 5, can.len);
if ((header.data_flags & TMP_ERROR_MESSAGE) != 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Why check only the TMP_ERROR_MESSAGE flag?

@kayoub5
Copy link
Member

kayoub5 commented Sep 24, 2024

@aamereller please add unit tests

@aamereller aamereller self-assigned this Sep 27, 2024
@RayanMRABET
Copy link
Contributor

@kayoub5 The conversion to CAN-FD error frame is incorrect. Am I mistaken?

image

@kayoub5
Copy link
Member

kayoub5 commented Oct 3, 2024

@kayoub5 The conversion to CAN-FD error frame is incorrect. Am I mistaken?

You are not mistaken

@kayoub5
Copy link
Member

kayoub5 commented Oct 16, 2024

Done in #37, closing

@kayoub5 kayoub5 closed this Oct 16, 2024
@kayoub5 kayoub5 deleted the issue/ANDI-10609 branch October 16, 2024 13:47
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.

3 participants