-
Notifications
You must be signed in to change notification settings - Fork 489
Added 'TwoWire::setBufferSize()' to Wire library #2962
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
Conversation
'setBufferSize()' allows to modify the receive buffer size (inspired by the ESP32 code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for implementing the option.
You'll need to clean up some minor formatting issues shown in CI (use tools/restyle.sh under Linux to automatically fix those) and some warnings about signedness you need to explicitly cast away.
I fixed an oversight of mine (buffer is also used on write) and added the casts. |
I would gladly resolve the issue, but I really don't get what the problem is. I would really appreciate, if you could point me in the right direction here... Regards, |
You need to remove the spaces on blank lines that the CI identified, please. |
Per the CI report, there are 3 tab/space/format issues
|
And if you have astyle and this repo, you can just run |
Took a little while to get there, but it got there in the end. 😆 |
'setBufferSize()' allows to modify the receive buffer size (inspired by the ESP32 code)
Hi,
As you suggested I added the missing 'setBufferSize()' method to the Wire library,
The method name and #define are taken from the ESP32 code.
I had to make some design decisions:
The code worked fine in my test environment ;)
Cheers,
Sven