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 setting of RSP_ENABLE flag in set_frame_entry #1

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

lumagi
Copy link
Contributor

@lumagi lumagi commented Dec 18, 2023

Hi,

thanks for publishing the library. I found it quite helpful for working with the PLIN driver directly from Python.

I stumbled upon a bit of an issue with the RSP_ENABLE flag: at the moment, the RSP_ENABLE flag is only passed to the kernel if it's already present in the flags parameters. If not, nothing is passed. I assume this might be a typo mistake where & was used instead of |.

I propose a fix to the function as well as a unit test to validate the implementation. If you don't mind, I can also make an additional folder called tests/integration in which the existing tests can go.

Previously, the RSP_ENABLE flag was only set if it was already
present in the flags parameter. Otherwise, no flags were set.
With this commit, flags are always set and the RSP_ENABLE flag
is additionally set if the direction is PUBLISHER.
@willzhang05 willzhang05 merged commit f85723e into rivian:main Apr 11, 2024
@willzhang05
Copy link
Member

nice catch, thanks

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