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

Add return values to STM32F4 Wire.write() methods to be compatible with recent Adafruit libraries #925

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

board707
Copy link
Contributor

Methods write() of the WireBase class for STM32F4 (STM32F4/libraries/Wire/WireBase.h) are erroneously defined as void, which makes them incompatible with recent versions of libraries such as Adafruit GFx. The same methods in the branch for STM32F1 returns int and doesn't produce incompatibility errors.
The fix adds a return value to methods, fixing compatibility issues.

@board707 board707 changed the title Add return values to STM32F4 write() methods to be compatible with recent Adafruit libraries Add return values to STM32F4 Wire.write() methods to be compatible with recent Adafruit libraries Apr 25, 2024
@stevstrong stevstrong merged commit 1cbad56 into rogerclarkmelbourne:master Apr 28, 2024
1 check passed
@stevstrong
Copy link
Collaborator

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.

None yet

2 participants