Skip to content

Fix buffer being overwritten by multiple twi_transmit calls #5014

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

Merged
merged 1 commit into from
Jun 6, 2016
Merged

Fix buffer being overwritten by multiple twi_transmit calls #5014

merged 1 commit into from
Jun 6, 2016

Conversation

kellerkindt
Copy link
Contributor

Fixes that more complex methods (like Stream::print(float)) do not work properly.

Without this fix, Wire.print(1.01f); results in '1' because Print::printFloat(double, uint8_t) performs multiple print() and therefore multiple twi_transmit calls. Also Wire.println("Heyho"); results only in a newline character.

Fixes that more complex methods (like Stream::print(float)) do not work properly.

Without this fix, Wire.print(1.01f); results in '1' because Print::printFloat(double, uint8_t) performs multiple print() and therefore twi_transmit calls. Also Wire.println("Heyho"); results only in a newline character.
@sandeepmistry sandeepmistry merged commit ab4e114 into arduino:master Jun 6, 2016
@sandeepmistry
Copy link
Contributor

@kellerkindt thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library: Wire The Wire Arduino library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants