rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

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

Closed board707 closed 2 months ago

board707 commented 2 months ago

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.

stevstrong commented 2 months ago

Thank you!