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

make Display::dcs public, fixes #89 #90

Merged
merged 3 commits into from
Jan 13, 2024
Merged

make Display::dcs public, fixes #89 #90

merged 3 commits into from
Jan 13, 2024

Conversation

almindor
Copy link
Owner

@almindor almindor commented Jan 12, 2024

Add Display::dcs unsafe method to allow sending custom commands. Fixes #89

@almindor almindor requested a review from rfuest January 12, 2024 20:27
@rfuest
Copy link
Collaborator

rfuest commented Jan 13, 2024

I don't really like this change. If the user can send any command to the display it is possible to leave the controller in any state and possibly break further commands that are send using the regular API. I would prefer to only expose the DCS interface as an unsafe getter, if this function is really required and there is no way to add a higher level API to achieve the same function.

@almindor almindor force-pushed the pubdcs branch 2 times, most recently from 446294f to 953ecaa Compare January 13, 2024 17:56
@almindor
Copy link
Owner Author

@rfuest changed it into an unsafe getter method, lmk if this is ok.

mipidsi/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Ralf Fuest <mail@rfuest.de>
@almindor almindor merged commit ced9a29 into master Jan 13, 2024
@almindor almindor deleted the pubdcs branch January 13, 2024 19:01
@sampaioletti sampaioletti mentioned this pull request Jan 13, 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

Successfully merging this pull request may close these issues.

Expose Display.dcs
2 participants