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

Split endTransmission and requestFrom so function signaturess exactly… #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AxTheB
Copy link

@AxTheB AxTheB commented Jan 16, 2020

… match TwoWires, so it can be used in 3rd party libraries. (if/when Arduino makes beginTransmission, beginTransmission and requestFrom virtual)

@Koepel
Copy link
Collaborator

Koepel commented Jan 16, 2020

Agreed.
Perhaps more is needed, for example making them virtual.
The Arduino Wire.h for the AVR branch is from 2016 and the Wire.cpp from 2017. It seems that those files will not change a lot the coming years, so that is the goal to be compatible with.

@AxTheB
Copy link
Author

AxTheB commented Feb 2, 2020

Yes, you have to make them virtual, but you have to do it in Wire.h. Having this merged is just a step on my quest to get it working upstream (or at least having less libraries to patch when deploying my hardware)

@Testato
Copy link
Owner

Testato commented Jul 1, 2021

Arduino Teams decided they didn't want to set up Virtual the functions in Wire.h.

It would still be useful match all functions with TwoWire API, but should be cheched if not only this two functions need modifications.
If you like to do it, I'll accept the new PR
Thank you

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