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

Why does XcpSetDaqListMode overwrites flags to be mode? #43

Closed
f-zl opened this issue Nov 7, 2023 · 1 comment
Closed

Why does XcpSetDaqListMode overwrites flags to be mode? #43

f-zl opened this issue Nov 7, 2023 · 1 comment

Comments

@f-zl
Copy link

f-zl commented Nov 7, 2023

I have a question about the function XcpSetDaqListMode in xcpLite.c in commit 0870237 (most recent commit in master). It has this line DaqListFlags(daq) = mode;, which overwrites the flags to be mode.

From the XCP specification (only have version 1.1 in hand), the mode in SET_DAQ_LIST_MODE is bit mask of ALTERNATING, DIRECTION, TIMESTAMP, PID_OFF. The line DaqListFlags(daq) = mode; will clear the bits like DAQ_FLAG_SELECTED and DAQ_FLAG_RUNNING when receiving a SET_DAQ_LIST_MODE command. Is this a bug? Thanks for reply.

@RainerZ
Copy link
Collaborator

RainerZ commented Nov 8, 2023 via email

@RainerZ RainerZ closed this as completed May 27, 2024
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

No branches or pull requests

2 participants